You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joan Noval <mt...@yahoo.com> on 2000/07/30 23:25:57 UTC
struts:form action
hello everyone..
i got this problem. i need to do this kind of code..
<struts:form
action="sellerlogon.do?input="<%=request.getParameter("input")%>
.... />
instead of..
<struts:form action="sellerlogon.do" .... />
<input type="hidden" name="input"
value=<%=request.getParameter("input")%> size="1">
so that if the user saves the target url to his/her
history... i can still get the parameter "value".
-tnks
joan
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Re: struts:form action
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
(Not sure this ever got addressed, so just in case ...)
Joan Noval wrote:
> hello everyone..
> i got this problem. i need to do this kind of code..
>
> <struts:form
> action="sellerlogon.do?input="<%=request.getParameter("input")%>
> .... />
>
> instead of..
>
> <struts:form action="sellerlogon.do" .... />
>
> <input type="hidden" name="input"
> value=<%=request.getParameter("input")%> size="1">
>
> so that if the user saves the target url to his/her
> history... i can still get the parameter "value".
>
The JSP syntax for custom tags requires you to use either a string
constant or a scriptlet expression for the attribute value. One way to
do what you're after is this:
<%
String url = "sellerLogon.do?input=" + request.getParameter("input");
%>
<struts:form action="<%= url %>" ... />
>
> -tnks
> joan
>
Craig