struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Override form action URL
Date Wed, 09 Jun 2004 11:57:53 GMT
Its context relative...from the user guide...

"action - Use the value of this attribute as the name of a Action to be
looked up, and use the module-relative or context-relative URI found there.
"

http://jakarta.apache.org/struts/userGuide/struts-html.html#link

Niall

----- Original Message ----- 
From: "Eric Jain" <Eric.Jain@isb-sib.ch>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, June 03, 2004 3:20 PM
Subject: Re: Override form action URL


> > If so you can define a dummy action to which your form points. In the
> > dummy just forward to your actual action. In the rendered jsp/html page
> > you will see the dummy action.
>
> Thanks, unfortunately the example I gave was somewhat simplified. I'd
> rather avoid having to configure dozens of dummy actions. Furthermore,
> Struts will insist that actions mapped to nested paths be put in their
> own subapplications. And finally, the following mapping would not be
> possible:
>
>    /test/a/ -> /test/search?dataset=a
>    /test/a/1 -> /test/retrieve?id=1
>
> In the end, as far as I can see, all I need is a way to override the URL
> that is generated by the html:form tag. I just opened a feature request,
> see http://issues.apache.org/bugzilla/show_bug.cgi?id=29363.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message