The fact is that struts will not handle unchecked checkbox.I got a problem.Set the bean type is InfoForm
and the recommend
field is associated with a checkbox. In a Controller A
,set the recommend
field with a value 1,means that the checkbox should be checked when load the page. After load the page ,i click the checkbox and set the checkbox to be unchecked. Next,i submit the form to a method in a Controller.But the recommend
field value will be 1 because the struts checked the checkbox was unchecked status,then will do nothing with it ,and the recommend
field value passed back to the back end.How can i deal with it?
vendredi 4 novembre 2016
handle struts unchecked checkbox
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire