I have a one.jsp file. It contains multiple data with check boxes. How can I pass the selected check boxes to another action servelet and get the selected check box values?
Checkboxes are like any other form input. When submitted, Struts places the values in the ActionForm bean, which you can then access in the Action class specified by the action attribute of the <html:form> tag.
For checkboxes, you have your choice of using either the <html:checkboxes> or <html:multibox> tags.
The values which are to be sent to the action servlet need to be the values of the checkboxes. Then Action form takes these values by reflection and this Action form can be accessed in the Action class.
- Christian
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.