You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by de...@struts.apache.org on 2004/12/02 23:58:39 UTC
[Apache Struts Wiki] Updated: StrutsDeprecatedActionErrors
Date: 2004-12-02T14:58:38
Editor: JoeGermuska <jo...@germuska.com>
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org