How values of checkboxes can be saved in database in JSP and Javascript?
I am working on a java based application.In this application,there are two JSP.These JSP contains some checkboxes,radio elements and struts tags.User selects some of these checkboxes.On Clicking add link in an jsp,a new template is created.And user selects some  or all checkboxes and than save the template. The template is saved in database but values of checkboxes are not saved in database.And Checkboxes are shown as unchecked.Plz suggest any solution to save values of checkboxes in database.
How values of checkboxes can be saved in database in JSP and Javascript?
===

I am working on a java based application.In this application,there are two JSP.These JSP contains some checkboxes,radio elements and struts tags.User selects some of these checkboxes.On Clicking add link in an jsp,a new template is created.And user selects some  or all checkboxes and than save the template. The template is saved in database but values of checkboxes are not saved in database.And Checkboxes are shown as unchecked.Plz suggest any solution to save values of checkboxes in database.