JSP Problem

Reply

Join Date: Aug 2004
Posts: 11
Reputation: zaman1111 is an unknown quantity at this point 
Solved Threads: 0
zaman1111 zaman1111 is offline Offline
Newbie Poster

JSP Problem

 
0
  #1
Sep 5th, 2007
I have a JSP page which has student roster and letting instructor choose grades for some students with check box. I want only the students info which were checked to my next JSp page, but I cant take the only selected ones. It takes the selected number of students like say 3 but it will take the 1st 3 students from the list not the one I choose. I am using getParameterValues to capture the value. The sample HTML shown below. Any ideas.
thks,



  1.  
  2. <table class="sample" cellSpacing="0" cellPadding="0" align="center" border="1" id="table1">
  3. <tr align="left">
  4. <td vAlign="center" align="left">1234</td>
  5. <td vAlign="center" align="left"><strong>BARIBAN, STEVEN G</strong>
  6. </td>
  7. <input type="hidden" value="1234" name="student_id" >
  8. <input type="hidden" value="BARIBAN, STEVEN G" name="student_name" >
  9. <td vAlign="center" align="left">
  10. <input type="checkbox" value="WU" name="newgrade" > <br>
  11. WU</td>
  12. <td vAlign="center" align="left"><label><br>
  13. <input size="15" name="lad" or><br ></label></td>
  14. </tr>
  15. <tr>
  16. <td vAlign="center" align="left">2341</td>
  17. <td vAlign="center" align="left"><strong>BRATKO, IGOR M</strong> </td>
  18. <input type="hidden" value="2341 name="student_id" >
  19. <input type="hidden" value="BRATKO, IGOR M" name="student_name" >
  20. <td vAlign="center" align="left">
  21. <input type="checkbox" value="WU" name="newgrade" > <br>
  22. WU</td>
  23. <td vAlign="center" align="left"><label><br>
  24. <input size="15" name="lad" or><br ></label></td>
  25. </tr>
  26. </table>
  27.  
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,649
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: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: JSP Problem

 
0
  #2
Sep 7th, 2007
What is the point in having multiple check boxes with the same name and value? Also as you haven't shown us your Servlet, it would be difficult for us to pin point the error. And please state your requirements a bit more clearly.
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: Aug 2004
Posts: 11
Reputation: zaman1111 is an unknown quantity at this point 
Solved Threads: 0
zaman1111 zaman1111 is offline Offline
Newbie Poster

Re: JSP Problem

 
0
  #3
Sep 13th, 2007
thanks for looking into it. I dont have any servlet and I already solved the problem.
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