Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to store the multiple check box values in the form bean

 
Teja Reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i had displayed the values in jsp using multiple checkbox from Database, now i want to save the values of checkbox in Formbean and pass them to Action.

Help me out for the same

thanks in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What part are you stuck on?

Do you know what the browser is sending you when the user submits the form?
Do you know how to retrieve parameters from the request?
Are you retrieving them from your servlet or are you passing the map of parameters to your form bean?
Is there a fixed number of checkboxes?
Do you know their names ahead of time?
Do your checkboxes have values or are you only checking for null or not null.
Do your checkboxes have different names or do they all share a name?

The more information you can give us, the more we can help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic