wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts array of checkboxes" Watch "Struts array of checkboxes" New topic
Author

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
Colour
|_Red
| |___Maroon
| |___Blood Red
| |___Scarlet
|_ Blue
|____Violet
|____Sky blue

etc
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.
 
Consider Paul's rocket mass heater.
 
subject: Struts array of checkboxes
 
Similar Threads
combo box with checkboxes
FileUpload Issue
multiple Checkbox
Create a Form with iterating rows, with the same data
html:mutlibox uncheck ,check problem