You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fa...@syntegra.com on 2005/05/12 12:12:18 UTC

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org