Two Laptop Bag
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
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 ]

I agree. Here's the link:
subject: struts checkboxes
It's not a secret anymore!