Basically, I use
<s:checkbox> to pass boolean value into my Action class in
Struts 2. Before submitting data, I need validation of data.
In my action class, I find that in validation method, all boolean value passed by
<s:checkbox> are always true. But in submitting, all is correct.
I tried to use jQuery functions to change the
fieldValue of all checkboxs according to their boolean value, to no avail. All javascript codes are executed, but fieldValue are not changed, all true.
See more details in my question in Stackoverflow:
Stackoverflow question
But there are no answers to this, so I put it here. Thanks.