View Single Post
  #2 (permalink)  
Old April 20th, 2007, 06:38 AM
iamrakesh22 iamrakesh22 is offline
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Declare an array varible with a name days in the form bean class and change the name attribute in the page to days,or else you can use struts taglibraries and set the property attribute to days then the selected check boxes will be stored in that array, use it to store in the database.
If you are using plain JSP/Servlets then give the name attribute for the check boxes as days and in the servlet use request.getParameterValues() method to get the array of values [selected check boxes] as a String array.

Regards,
Rakesh
Reply With Quote