• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with selected checkbox value in struts 1.2

 
Megha Verma
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic