You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sergey Livanov <Se...@ukrpost.net> on 2004/07/22 18:02:45 UTC
parameterizing action attribute to html:form
Please advise me,
I try to set html:form action= parameter.
In my action :
request.setAttribute( "action", MyBean )
JSP:
<html:form action="${action.actionURI}" >
</html:form>
OR
<c:set var='formaction' value="${action.actionURI}" />
<html:form action="${formaction}" >
</html:form>
After this I've got an error
Cannot retrieve mapping for action /${formaction}'
What's wrong?
--
regards
Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: parameterizing action attribute to html:form
Posted by Robert Taylor <rt...@mulework.com>.
You have to use the Struts-EL tag library for this to work with EL.
robert
> -----Original Message-----
> From: Sergey Livanov [mailto:Sergey.Livanov@ukrpost.net]
> Sent: Thursday, July 22, 2004 12:03 PM
> To: Struts Mailing List
> Subject: parameterizing action attribute to html:form
>
>
> Please advise me,
>
> I try to set html:form action= parameter.
>
> In my action :
> request.setAttribute( "action", MyBean )
>
> JSP:
>
> <html:form action="${action.actionURI}" >
> </html:form>
>
> OR
>
> <c:set var='formaction' value="${action.actionURI}" />
> <html:form action="${formaction}" >
> </html:form>
>
> After this I've got an error
> Cannot retrieve mapping for action /${formaction}'
>
> What's wrong?
>
> --
> regards
> Sergey mailto:Sergey.Livanov@ukrpost.net
>
>
> ---------------------------------------------------------------------
> 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
RE: parameterizing action attribute to html:form
Posted by Robert Taylor <rt...@mulework.com>.
Are you including the html-el tag library in the page?
robert
> -----Original Message-----
> From: Sergey Livanov [mailto:Sergey.Livanov@ukrpost.net]
> Sent: Thursday, July 22, 2004 12:03 PM
> To: Struts Mailing List
> Subject: parameterizing action attribute to html:form
>
>
> Please advise me,
>
> I try to set html:form action= parameter.
>
> In my action :
> request.setAttribute( "action", MyBean )
>
> JSP:
>
> <html:form action="${action.actionURI}" >
> </html:form>
>
> OR
>
> <c:set var='formaction' value="${action.actionURI}" />
> <html:form action="${formaction}" >
> </html:form>
>
> After this I've got an error
> Cannot retrieve mapping for action /${formaction}'
>
> What's wrong?
>
> --
> regards
> Sergey mailto:Sergey.Livanov@ukrpost.net
>
>
> ---------------------------------------------------------------------
> 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