You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ri...@socgen.com on 2002/04/02 10:20:03 UTC

Add a request parameter to a struts action


Hi everybody,

Anyone know how to send to a struts action a parameter and  not an attribute ?

Thanks for your help
Best regards
Rizvan



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Add a request parameter to a struts action

Posted by Oliver Refle <o....@gmx.de>.
I always do it like this

<a href="javascript:{document.forms[0].action='<%=
request.getContextPath()%>/do/admin/myAction?id=<%= objectName.getId()
%>&companyType=<%=companyType%>';document.forms[0].submit()/>

this normaly should work fine, so you also can define different action paths
for you form.

Oliver

-----Original Message-----
From: rizvan.katchera@socgen.com [mailto:rizvan.katchera@socgen.com]
Sent: Tuesday, April 02, 2002 10:20 AM
To: struts-user@jakarta.apache.org
Subject: Add a request parameter to a struts action




Hi everybody,

Anyone know how to send to a struts action a parameter and  not an attribute
?

Thanks for your help
Best regards
Rizvan



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>