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 Displaying list of check boxes with some boxes checked using struts 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 "Displaying list of check boxes with some boxes checked using struts " Watch "Displaying list of check boxes with some boxes checked using struts " New topic
Author

Displaying list of check boxes with some boxes checked using struts

chandu here
Greenhorn

Joined: Jun 23, 2007
Posts: 1
I have a list of value objects that contain set and get methods of employee ids and checkedflagstatus .and i need to display that list in a jsp using struts with a check box corresponding to each id. and i need to set some check boxes automatically checked on load based on checkedflag status. I need to show using <html:checkbox.
Pls help me out. teja.g@tcs.com
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Chandu here,

Welcome to JavaRanch! We're glad you're here. I do need to remind you, though, that the name you are currently displaying does not meet the guidelines of the JavaRanch Naming Policy. In particular, the name you display must be a first and last name, and must not be obviously fictitious. Please change the Publicly Displayed Name in your user profile so that it meets the guidelines.

This may seem trivial to you, but it's an important part of the culture at JavaRanch, and we do appreciate your compliance with it.

Regarding your question: I believe the best way to handle this would be with indexed properties. For more information on how to use indexed properties, see question 6 of the JavaRanch Struts FAQ


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying list of check boxes with some boxes checked using struts