Hi, In my
Struts application, I have my validateForm method in my ActionForm
public ActionErrors validate(
ActionMapping mapping, HttpServletRequest request ) {
final ActionErrors errors = new ActionErrors();
...
ActionMessage am = new ActionMessage("error.accountNum.invalid");
logger.debug("Validation failure:" + am.toString());
errors.add("accountNum",am);
and then on my
JSP page I have
<div>
<html:errors></html:errors> |
</div>
However even though my validation form is setting values in the ActionErrors object (which I verify through my log file), those errors are displayed in the JSP. Any ideas what I'm doing wrong?
Thanks, - Dave