aspose file tools*
The moose likes Servlets and the fly likes storing check boxes values into diffrent columns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "storing check boxes values into diffrent columns" Watch "storing check boxes values into diffrent columns" New topic
Author

storing check boxes values into diffrent columns

viji reddy
Greenhorn

Joined: Jan 07, 2008
Posts: 1
hi,

I have 3 checkboxes.I want to store selected checkboxes values into diffrent coumns that is one check box value into one column.and making unselected checkbox values in data base columns as null.iam using servlets/jsp.how can i insert ..

kindly help me.

thanks
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
document.formname.checkboxname.checked gives the name of the checkboxes you have selected and get those values correspondingly.get those values in servlet using request.getParameter("") and then do the database operations
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
In case you have multiple checkboxes/parameters under on name, which is a norm, you can use request.getParameterValues(). This way you will only get checked boxes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: storing check boxes values into diffrent columns
 
Similar Threads
Variable Property
validating user,password in ejb
How to insert integer variable using jdbc
Managing the width of the columns of datatable
EJB Examples on Weblogic 6.0