aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 10535
    
    9

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Would I access the checked row of a table in UI into my Action Class?