| | |
JSP Problem
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2004
Posts: 11
Reputation:
Solved Threads: 0
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,
thks,
JSP Syntax (Toggle Plain Text)
<table class="sample" cellSpacing="0" cellPadding="0" align="center" border="1" id="table1"> <tr align="left"> <td vAlign="center" align="left">1234</td> <td vAlign="center" align="left"><strong>BARIBAN, STEVEN G</strong> </td> <input type="hidden" value="1234" name="student_id" > <input type="hidden" value="BARIBAN, STEVEN G" name="student_name" > <td vAlign="center" align="left"> <input type="checkbox" value="WU" name="newgrade" > <br> WU</td> <td vAlign="center" align="left"><label><br> <input size="15" name="lad" or><br ></label></td> </tr> <tr> <td vAlign="center" align="left">2341</td> <td vAlign="center" align="left"><strong>BRATKO, IGOR M</strong> </td> <input type="hidden" value="2341 name="student_id" > <input type="hidden" value="BRATKO, IGOR M" name="student_name" > <td vAlign="center" align="left"> <input type="checkbox" value="WU" name="newgrade" > <br> WU</td> <td vAlign="center" align="left"><label><br> <input size="15" name="lad" or><br ></label></td> </tr> </table>
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
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
![]() |
Similar Threads
- Help me about JSP problem... (JSP)
- JSP Problem Student database search (Java)
- Working classes with JSP (JSP)
- tomcat jsp problem (JSP)
- [urgent] JSP problem (JSP)
Other Threads in the JSP Forum
- Previous Thread: WAR file contains DB or not
- Next Thread: Allow User To Upload A Picture
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






