wood burning stoves 2.0*
The moose likes Struts and the fly likes struts checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts checkboxes" Watch "struts checkboxes" New topic

struts checkboxes

roseline ruba

Joined: Mar 21, 2007
Posts: 20
hi, i want to display the checkbox in my page. user can check oone or more checkbox at a time. I'm using dynaActionForm. Please let me know how can i create this kind of check box. and which type i can use to specify the checkbox values (java.lang.String[] or java.util.ArrayList) ? Please help me.

i use like this <layout:checkboxes key="flightallocation.location1" property="location" styleClass="LABEL">
<layout ptions collection="locationList" property="data1" labelProperty="data2" />

and i used java.lang.String[] .then I got non-indexed property error...
[ September 24, 2007: Message edited by: roseline ruba ]

It is sorta covered in the JavaRanch Style Guide.
subject: struts checkboxes
Similar Threads
multi select boxes
Struts - Check boxes problem
Capturing Checkbox value using spring framework
Struts: checkbox's previous value remains if i go back and unselect it
Struts - Dynamically Populate checkbox