• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts array of checkboxes

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic