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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:20 AM
To: [EMAIL PROTECTED]
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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>