user@struts.apache.org, I have a validate() method on my form bean which returns ActionMessages, I call the method from my action class. In my logs I can see that ActionMessages have been populated and the flow is redirected to my error page. My validation method is:
public ActionMessages validate() {
  ActionMessages errors = new ActionMessages();
  errors.add("error", new ActionMessage("errors.required", "XXX"));
  return errors;
} I save the error generated in my validate() method using this in my action class: saveMessages(request, actionErrors); At the top of my error page I have the following in my JSP:
<logic:messagesPresent>
<html:messages id="error">
<div class="ErrorMessage"><bean:write name="error" /><br /></div>
</html:messages>
</logic:messagesPresent> Errors are displayed as I expect through my validation.xml but no error is displayed when it goes through my action class. Any ideas why? Thanks, Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to