*
The moose likes JSP and the fly likes javabeans and 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 » Java » JSP
Bookmark "javabeans and checkboxes" Watch "javabeans and checkboxes" New topic
Author

javabeans and checkboxes

Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
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?


Matthew Phillips
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
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.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I was hoping for an easier way, but thanks.
 
 
subject: javabeans and checkboxes
 
Similar Threads
html-multibox How can i make certain values checked
How to find Checkboxes?
Scolling the List to specific place when key is pressed
Using same checkbox multiple times in an applet
retrieving users' bookmarks