I got a strange (and probably) wrong behaviour here. I was trying to put a checkbox on the page, and you know it: unchecked checkboxes are not written to the request (only checked boxes are)
What struts normally offers is to override:
@Override
public void reset(ActionMapping mapping, ServletRequest request)
to reset all the checkboxes to “false”.
But in my case, this reset() is never called!
Someone got an idea?
Thanks in advance,
mana
The reset method is automatically called by the Struts framework (your observation on The Elite Gentleman’s answer is correct)… that is if you did everything by the book.
Check the following:
class or something else?
reset method in a subclass of the
one you are not getting the method called and you
use that for your action?
by hand, instead of letting Struts
do it?
that your action uses that
particular form by specifying the
nameattribute on theactiontag?My money is on number 4.