Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javabeans and checkboxes

 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form with multiple check boxes. All of the checkboxes have the same name, but they have different values. The checkboxes represent various certifications that a person could have. Each checkbox also has an associated text field to enter the date. I would like to have these stored as arrays in a java bean, but I am not sure how to do this. Does anyone have any hints for me?
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do the associated textboxes have a name and are they all the same name? If they are you may be able to use getParameterValues() to retrieve the values into an array.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was hoping for an easier way, but thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic