wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
Consider Paul's rocket mass heater.
subject: retrieve a row in a table
Similar Threads
In struts, How to solve this with Database and jsp?
dynamic Checkboxe value retrieval
Is it possible to draw struts-tag in javascript ....?
Getting the index of the row in JTable
retrieve blob data from mysql using jsp