jyothirmai porika wrote:
> I have a jsp page with 3 forms.
> What i want to do is when the 2nd form is submitted, fist and third should
> not be submitted and vice versa.
> I tried to submit by calling each submit based on condition,
> But it's not working.
> How can i handle multiple forms.
Stylistically, you probably want to avoid having multiple forms on a
single page. However, if this is a requirement for some reason then you
just need to set your ACTION attribute of the FORM tag to be different
pages for each tag.
Ex:
<form name="form1" method="post" action="form1Submit.jsp">
[... form elements ...]
</form>
<form name="form2" method="post" action="form2Submit.jsp">
[... form elements ...]
</form>
<form name="form3" method="post" action="form3Submit.jsp">
[... form elements ...]
</form>
Hope this helps.
- J
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets