File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts array of checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts array of checkboxes" Watch "Struts array of checkboxes" New topic

Struts array of checkboxes

shawn kennedy
Ranch Hand

Joined: Oct 31, 2002
Posts: 67
Hi guys,
I have this one problem with struts.I have For e.g
| |___Maroon
| |___Blood Red
| |___Scarlet
|_ Blue
|____Sky blue

Now i need to print a checkbox against each of the sub colours(i.e scarlet,blood red etc) and all this data shown above is dynamic comes from the database where red comes from a groups table and maroon comes from a
sub group table.I know how to get all the stuff out of the database and print checkboxes etc.But when i select something it does not store the value properly meaning even if u use the indexed property for checkbox it works only to one layer ie. if checkbox was against red and blue instead of the violet and maroon it stores everything properly as it gets its array index from the indexed property but in this case we need a two dimesnional array stating which subgroup and group.Does anyone know how to resolve this problem.
I agree. Here's the link:
subject: Struts array of checkboxes
It's not a secret anymore!