Date: 2004-12-02T14:58:38
   Editor: JoeGermuska <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: StrutsDeprecatedActionErrors
   URL: http://wiki.apache.org/struts/StrutsDeprecatedActionErrors

   make consistent the usage of saveErrors and message='false'

Change Log:

------------------------------------------------------------------------------
@@ -5,7 +5,7 @@
    ActionMessages am = new ActionMessages(); 
    am.add( ActionMessages.GLOBAL_MESSAGE,  
            new ActionMessage( "not.authorized.for.account" ) ); 
-   saveMessages( request, am ); 
+   saveErrors( request, am ); 
  }}}
 and to display those messages in the JSP: 
 
@@ -17,7 +17,7 @@
 
 or if you are not using the struts-el tags:
 {{{ 
-   <html:messages id="msg" message="true"> 
+   <html:messages id="msg" message="false"> 
       <bean:write name="msg" /> 
    </html:messages> 
  }}}

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

Reply via email to