I’m new to Struts 1 so may be its already a resolved question.
The situation is: I have a list of <html:multibox> tag, which are rendered into html-checkbox element when the page loads. I want the checkboxes to be checked by default (without using javascript/jquery).
I’m new to Struts 1 so may be its already a resolved question. The
Share
You would set the fields in your
Formif you want them selected. For multiple checkboxes with all the samenamebut differentvalues, yourFormshould have aString[]property that holds all the selected values. Just populate that with the values you want selected by default. This could be something as simple as: