This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Ranch Office
Reply locked New topic

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

Ash Acharya

Joined: Jan 09, 2009
Posts: 11
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.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Please read carefully what it says at the top of this forum.
This forum is intended for questions and comments about the web sites and
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.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
It is sorta covered in the JavaRanch Style Guide.
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