Jeremy,
This is because your image button is a submit button, regardless of what the
text on it may say. The link you provided didn't say anything about reset
methodology so I'm not sure what you are referring to there, but the easiest
way to avoid triggering the validate method is to not submit
You could remove the validate call in your form and call the form's validate
method in your Action depending on whether it was a submit or reset.
//validate form
ActionErrors errors = new ActionErrors();
errors = yourForm.validate(mapping, request);
//put the errors object in request
saveErrors(
2 matches
Mail list logo