html - how to give different names to different checkboxes when checkboxes are created from while loop -


i creating checkboxes @ runtime, in while loop according amount of data coming database.
want know should write in attribute name give different name each checkbox. value, if want pass value of rs.getstring(1) using jsp.
here piece of code.

<%while(rs.next()) { %><tr><td align="center"><input type="checkbox" name="" value=""> <% for(int i=1;i<=5;i++) { %> <td align="center"> <%=rs.getstring(i)%> </td> <%}%> </tr> <%}%> 


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -