jQuery in Action, 2nd edition*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Don't get me started about those stupid light bulbs.
subject: retrieve a row in a table
Similar Threads
Getting the index of the row in JTable
Is it possible to draw struts-tag in javascript ....?
dynamic Checkboxe value retrieval
retrieve blob data from mysql using jsp
In struts, How to solve this with Database and jsp?