This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes How Would I access the checked row of a table in UI into my Action Class? 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 » This Site » Ranch Office
Reply locked New topic
Author

How Would I access the checked row of a table in UI into my Action Class?

Ash Acharya
Greenhorn

Joined: Jan 09, 2009
Posts: 11
Hi,
I'm developing an application in Struts where I'm displaying data from a table in the database inside the <table> tag in my jsp. I also am displaying a checkbox prefixed to each row in the jsp, so that a user would check a checkbox, upon which the checked row would become editable, and then edit the data in the table. On clicking the 'Save' button, the data would be captured and populated as a list of Value Objects. I'm displaying data from the database in <logic:iterate> in my jsp. I'm able to determine which row was checked in my action form, my problem is how would I determine which row(s) were checked in the action class and how would I access the data in those rows in the Action class? I'm keenly awaiting help on this.
Thanks in advance.


regards,
Ash.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

Please read carefully what it says at the top of this forum.
This forum is intended for questions and comments about the web sites www.javaranch.com and www.coderanch.com.
It is not for questions about the Java language - that's what all our other forums are for.


Please take care to post in the proper forum.
Locking.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Consider Paul's rocket mass heater.
 
subject: How Would I access the checked row of a table in UI into my Action Class?
 
Similar Threads
How do I Call a Bean Function Using JSP?
How to retrieve value from checkbox to Action Class
Problem with selected checkbox value in struts 1.2
How to catch checkbox value
Dynamic checkbox