Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts array of checkboxes

 
shawn kennedy
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic