File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes retrieve a row in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "retrieve a row in a table" Watch "retrieve a row in a table" New topic

retrieve a row in a table

Suman Dass

Joined: Feb 20, 2002
Posts: 28
I have generated a table dynamically of 4 columns of which the first is a checkbox. Now I want to retrieve a row (remanining 3 elements) based on the checkbox selection. How can I do it?
Roan Nicolas

Joined: Nov 11, 2002
Posts: 23
Thinking out loud:
You could try placing value in the hidden field with an iterated number in the end. For example:
<input type="hidden" name="firstrow<%=i%> value="test">
Then upon clicking the choosing the checkbox, add a snipet of code that retrieves the same value of iterated number of the hidden field with that of the checkbox.
Hope that makes sense.

Owee<p>SCJP 1.4
I agree. Here's the link:
subject: retrieve a row in a table
It's not a secret anymore!