Date: 2004-12-02T15:03:05 Editor: JoeGermuska <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: StrutsDeprecatedActionErrors URL: http://wiki.apache.org/struts/StrutsDeprecatedActionErrors
remove <code> tags which don't work in the wiki; try to answer comment/question Change Log: ------------------------------------------------------------------------------ @@ -22,7 +22,7 @@ </html:messages> }}} -This change was motivated by the realization that there are non-error messages that need to be communicated. Action now has an additional method <code>saveMessages(request,ActionMessages)</code>, which saves the messages in request scope under a different key, [http://jakarta.apache.org/struts/api/org/apache/struts/Globals.html#MESSAGE_KEY Globals.MESSAGE_KEY]. To display messages saved with <code>saveMessages(request,ActionMessages)</code>: +This change was motivated by the realization that there are non-error messages that need to be communicated. Action now has an additional method '''saveMessages(request,ActionMessages)''', which saves the messages in request scope under a different key, [http://jakarta.apache.org/struts/api/org/apache/struts/Globals.html#MESSAGE_KEY Globals.MESSAGE_KEY]. To display messages saved with '''saveMessages''': {{{ <html-el:messages id="msg" message="true"> <c:out value="${msg}"/> @@ -49,3 +49,5 @@ Comment from [EMAIL PROTECTED]: So what do you recommend for somebody who already wants to use ActionMessages, but also has ValidatorForm? + +Response: use ActionMessages anywhere except in an ActionForm. Soon we will provide an alternate method on ActionForm which returns an ActionMessages and lets us move forward with fully deprecating ActionErrors. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]