how to handle multiple forms in jsp

Reply

Join Date: May 2008
Posts: 5
Reputation: Dolly-Sweety is an unknown quantity at this point 
Solved Threads: 0
Dolly-Sweety Dolly-Sweety is offline Offline
Newbie Poster

how to handle multiple forms in jsp

 
0
  #1
Sep 6th, 2008
  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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to handle multiple forms in jsp

 
0
  #2
Sep 6th, 2008
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,642
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 472
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: how to handle multiple forms in jsp

 
0
  #3
Sep 7th, 2008
> 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?
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 7
Reputation: haoyou2008 is an unknown quantity at this point 
Solved Threads: 1
haoyou2008 haoyou2008 is offline Offline
Newbie Poster

Re: how to handle multiple forms in jsp

 
0
  #4
Sep 18th, 2008
using ajax to handle multiple forms
maybe better
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC