This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How to retrieve value from checkbox to Action Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to retrieve value from checkbox to Action Class " Watch "How to retrieve value from checkbox to Action Class " New topic
Author

How to retrieve value from checkbox to Action Class

Aayush Surana
Greenhorn

Joined: Oct 18, 2011
Posts: 8
Hi I am trying to add a checkbox to each row in my html table , the user can select multiple rows , and on click of the submit button , only these rows will be updated , where the update operation is performed in a method in my action class .
My question is that how can I identify the checked rows in my action class . I wanted to pass the row - ids of the selected rows to my action class .

Any help would be deeply appreciated !

Thanks !
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to retrieve value from checkbox to Action Class