You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Skariah <ms...@anshinsoft.com> on 2001/07/20 22:21:03 UTC

Handling multiple forms...in a JSP

Hello all,
I am not sure whether if this is a HTML question of a Struts question.
Anyways, I am trying my luck here.

I have a JSP with multiple forms. When the submit of form 1 is clicked, I
would like to read the value from the "source" of form 2 and set it in the
"action" property of form 1.
How can read the value of a different form.

Thanks a lot,
Michael.


-------------------------------
<html:form action="editTaxResult.do" method="post">
<html:hidden property="action" value=""/>
<html:submit property="submit" value="submit"/>
<html:cancel property="cancel" value="cancel"/>
</html:form>

<html:form action="accountTaxResult.do" method="post">
<html:hidden property="source" value="accountTax"/>
<html:submit property="submit" value="submit"/>
<html:cancel property="cancel" value="cancel"/>
</html:form>
-------------------------------


RE: Handling multiple forms...in a JSP

Posted by Michael Skariah <ms...@anshinsoft.com>.
Thanks to all.
I got it working.
-Mike.

-----Original Message-----
From: Michael Skariah [mailto:mskariah@anshinsoft.com]
Sent: Friday, July 20, 2001 1:21 PM
To: struts-user@jakarta.apache.org
Subject: Handling multiple forms...in a JSP


Hello all,
I am not sure whether if this is a HTML question of a Struts question.
Anyways, I am trying my luck here.

I have a JSP with multiple forms. When the submit of form 1 is clicked, I
would like to read the value from the "source" of form 2 and set it in the
"action" property of form 1.
How can read the value of a different form.

Thanks a lot,
Michael.


-------------------------------
<html:form action="editTaxResult.do" method="post">
<html:hidden property="action" value=""/>
<html:submit property="submit" value="submit"/>
<html:cancel property="cancel" value="cancel"/>
</html:form>

<html:form action="accountTaxResult.do" method="post">
<html:hidden property="source" value="accountTax"/>
<html:submit property="submit" value="submit"/>
<html:cancel property="cancel" value="cancel"/>
</html:form>
-------------------------------