Would I use the href tag in addition to using the forward tag within the link?
<html:link href="javascript:document.{Form Name}.submit();" forward="editClient"> </html:link> -----Original Message----- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:16 To: 'Struts Users Mailing List' Subject: RE: using html link to submit form and params If set your href of the link to be something like this: href="javascript:document.{Form Name}.submit();" Then the form will be submitted and your form values will not be set to null. Christopher Marsh-Bourdon www.marsh-bourdon.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:12 To: user@struts.apache.org Subject: using html link to submit form and params I have a search page which allows the user to perform multiple actions. i.e The user can select a returned row and then he can edit or delete via a link. However if I use the following link tag in my jsp: <html:link forward="editClient"></html:link> This is encompassed within a form tag. The struts config has the following: <global-forwards> <forward name="editClient" path="/actionClient.do?action=edit"/> </global-forwards> and: <action path="/actionClient" type="com.medina.web.action.ActionClientAction" name="actionClientForm" scope="request" input="/searchClient.jsp"> <forward name="edit" path="/createClient.jsp"/> </action> If I do it this way the actionform values are null when retrieved from the action class. What is the best way to submit a form using a link and at the same time pass a request parameter through to identify which link has been clicked so that the appropriate action can be carried out in the action class. ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.bt.com/consulting ******************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------ ----------------------------------------------------------------------------- --- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 ----------------------------------------------------------------------------- --- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.bt.com/consulting ******************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]