Hello,
I am trying to use ActioMessage(s) + html:messages to display
error and non-error messages in the UI.
However, my html:message tag is showing only messages set by the
validator, and not the messages that I am trying to set inside
an Action, like so:
ActionMessages errors = new ActionMessages();
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("error.auth.failure"));
saveMessages(request, errors);
return mapping.findForward("failure");
In the JSP layer I use html:messages like this:
<logic:messagesPresent>
<html:messages id="error">
<c:out value="${error}"/>
</html:messages>
</logic:messagesPresent>
Am I using these two things incorrectly?
Any help will be appreciated. I found example usage of
html:messages in a few Struts-related web pages, but none
described how it works when you set ActionMessage(s) in an
Action class.
Thank you,
Otis
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]