You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Senthivel U S <se...@uaeexchange.com> on 2002/12/05 10:05:12 UTC
Multiple forms
Greetings,
I have the form with multiple rows. Rows are populated from database.
Each row is displayed as a separate form using the tags
<logic:iterate name="myobject" id="myid" indexId="inx"
scope="request">
<form>
in the form tag I have the button for each row which calls the
javascript function go. In the go function I am just submitting
the form.
<html:button styleClass="formButtonStyle" property="ok"
value="Edit"
onclick="go(this.form)" />
I also have the tag
<html:form action="/editList.do">
My problem is:
1. If I click Edit button of the first row, it is working fine.
2. If I click the second row or any other row, it is not
working.
3. If I click the first row first and press back button and
click second row or anyother row it is working fine.
Actually what is happening is if I press the first row, action
editList is working. If I click anyother row, it is taking the previous
Action(which was in the url) and working accordingly.
Regards,
Senthivel U S
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>