wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
I agree. Here's the link: http://aspose.com/file-tools
subject: retrieve a row in a table
Similar Threads
In struts, How to solve this with Database and jsp?
dynamic Checkboxe value retrieval
Getting the index of the row in JTable
retrieve blob data from mysql using jsp
Is it possible to draw struts-tag in javascript ....?