The form qualsForm a checkbox (mutlibox) which i would like to submit all the checked boxes after i press the above links ... Currently, no data on checkboxes is passed to my Action class .. My form object has a property getCheckedItems which returns an array of checked items .. In my Action class i use this method to get what's checked, and it returns null
Just knowing<br /> <br />I am start Learning English now.
Songezo Nkukwana
Ranch Hand
Joined: Nov 27, 2008
Posts: 51
posted
0
AFAIK you should use "foo.bar.checked = true" to set checkboxes in JavaScript. This isn't really a Struts question, though.
Seems my question is not clear ... I have to JSP files (Navigation.jsp & QualsForm.jsp) ... QualsForm has checkboxes (multibox) which the user will select.. I will read the selected checkboxes into an array of strings inside the Action class when the form is submitted. If i add a submit button in my QualsForm, the checked boxes gets submitted successfully .. But if i use the hyperlink in Navigation.jsp to submit QualsForm.jsp, the string array form property is always empty ... The code i provided is how i did it was hoping for corrections