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:
name
attribute on the action
tag?My money is on number 4.