> From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
> Yes, we're supposed to use ActionMessage and ActionMessages 
> now.  The one
> place where we can't escape ActionError/s yet is ActionForm's validate
> method.

I was trying to get it straight recently, and made this note to myself:

In the Action: 

   ActionMessages am = new ActionMessages();
   am.add( ActionMessages.GLOBAL_MESSAGE, 
           new ActionMessage( "not.authorized.for.account" ) );
   saveErrors( request, am );

In the JSP: 

   <html-el:messages id="msg" message="false">
      <c:out value="${msg}"/>
   </html-el:messages>

http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsMessages

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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

Reply via email to