943,871 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 1641
  • JSP RSS
Sep 5th, 2007
0

JSP Problem

Expand Post »
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,



JSP Syntax (Toggle Plain Text)
  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.  
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zaman1111 is offline Offline
11 posts
since Aug 2004
Sep 7th, 2007
0

Re: JSP Problem

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.
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 13th, 2007
0

Re: JSP Problem

thanks for looking into it. I dont have any servlet and I already solved the problem.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zaman1111 is offline Offline
11 posts
since Aug 2004

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: WAR file contains DB or not
Next Thread in JSP Forum Timeline: Allow User To Upload A Picture





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


Follow us on Twitter


© 2011 DaniWeb® LLC