No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
A list of courses is displayed and user has to select 1, so I used radio buttons. The course list vary from one student to another. If I have more than 1 courses displayed and user selects one, everything is ok, but if I display 1 course, the test is … |
|
ArrayList<String> cs = CourseAssignments.getInstance().getStudentCoursesByName(sname); %> <table border="1" cellspacing="1" cellpadding="8" bgcolor= #EBDDE2> <% Iterator<String> i = cs.iterator(); while(i.hasNext()){ %> <tr> <td><%= i.next() %><input type= "radio" name= "courses" value="<%= i.next() %>"/></td> </tr> <%}%> </table> <center><input type= "submit" value= "Submit"></center> </form> <%} In ArrayList cs I have all the courses that a student … |