aspose file tools*
The moose likes Struts and the fly likes Problem with selected checkbox value in struts 1.2 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 » Frameworks » Struts
Bookmark "Problem with selected checkbox value in struts 1.2" Watch "Problem with selected checkbox value in struts 1.2" New topic
Author

Problem with selected checkbox value in struts 1.2

Megha Verma
Greenhorn

Joined: Aug 02, 2010
Posts: 1
Hi,
I am pulling some records from the DB and displaying it on the UI using <logic:iterate>. Each time the count of the record will be changed. and i am displaying a checkbox beside every row. my requirement is i need to update the record where the user checked the checkbox. how can i get only those values in my action class where checkbox is checked....my question is how do we access the values for that particular checkbox.

Any help would be greatly appreciated.
Thanks in Advance

Megha
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

In your action class, iterate through the the List of values for your check boxes and for each check box set to true "checked" read in the values from the list.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with selected checkbox value in struts 1.2