943,795 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 4944
  • JSP RSS
Sep 6th, 2008
0

how to handle multiple forms in jsp

Expand Post »
JSP Syntax (Toggle Plain Text)
  1. <table width="703" height="474" border="0" align="center" bgcolor="#FFFFFF">
  2. <tr>
  3. <td align="center" width="647" height="470">
  4. <form name="form1" method="post">
  5. <table align="center" width="606" border="0">
  6. <tr>
  7. <td width="144">
  8. <input name="R2" type="radio" value="radiobutton" /><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">To
  9. All User</font></b>
  10. </td>
  11. <td width="235">
  12. <input name="R2" type="radio" value="radiobutton" /><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">All
  13. at Particular Level</font></b>
  14. </td>
  15. <td width="213">
  16. <input name="R2" type="radio" value="radiobutton" /><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Individual at Particular level</font></b>
  17. </td>
  18. </tr>
  19. </table>
  20. <table border="0">
  21. <tr>
  22. <td width="57">&nbsp;</td>
  23. <td width="35">&nbsp;</td>
  24. </form>
  25. <form>
  26. <td width="96">&nbsp;</td>
  27. </tr>
  28. </table>
  29. </form>
  30. </td>
  31.  
  32. </tr>
  33. </table>

Is this possible in jsp. I am new to jsp. I have 2 forms in one jsp page. I am trying to get a table with 2 forms. Table have three columns in the table .I am trying to have 2 columns in one form and third in the other form. Is it possible. I have seen many examples related to multiple file hanling but i didnt get any solution. Can anybody help me? Plz... Thanks in advance.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Dolly-Sweety is offline Offline
5 posts
since May 2008
Sep 6th, 2008
0

Re: how to handle multiple forms in jsp

of course you can have multiple forms. It's quite common in fact.
Of course each form stands on its own, don't expect values from one form to be submitted as part of a request generated when submitting another one.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 7th, 2008
0

Re: how to handle multiple forms in jsp

> I am trying to have 2 columns in one form and third in the other form. Is it possible.

Yes, very much possible. Make sure you have different request handlers defined for each form by using the 'action' attribute of form if you expect selective processing. But your requirement suggests that there is something definitely wrong with your design. Why do you need two forms for a single table anyways?
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 18th, 2008
0

Re: how to handle multiple forms in jsp

using ajax to handle multiple forms
maybe better
Reputation Points: 6
Solved Threads: 1
Newbie Poster
haoyou2008 is offline Offline
7 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: How do i authentication so that i can send a email through jsp a page
Next Thread in JSP Forum Timeline: free jsp web hosting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC