
Using JSP: I'm displaying a set of values from the databse in a table rows (1 to 10)in jsp page, when onclick on one of the view row, it has to submit the page to servlet. In the servlet I'm retreiving the hidden text as a parameter to get the id value of the row I clicked. The problem is everytime I click on any of the 10 rows, the hidden text is storing the id for the first row and not any other row. Really appreciate ur help. Please help me.
Here is a dummy code I had created to show:
<TABLE cellpadding="15" border="1" style="background-color: #ffffcc;">
<%while (rs.next()) {%>
<TR onclick=submit()>
<TD><%=rs.getInt(1)%><TD><%=rs.getString(2)%><TD><%=rs.getString(3)%><TD><%=rs.getString(4)%><TD>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
