Hi Tim,

yes only Error, not Errors, because of
validate()

in jsp use this:
<html:text property="foo"/>
<struts-html:messages id="error" property="foo">
   <struts-bean:write name="error"/>
</struts-html:messages>


cheers, !
matthias


-----Original Message-----
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 9:14 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionErrors deprecated?


> 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.

Wait a minute!!! ActionError is marked as deprecated, but not
ActionErrors. It looks to me like we create an ActionMessage, add that
to an ActionErrors collection, and use <html:errors/> to display the
contents of that on the JSP page.

--
Tim Slattery
[EMAIL PROTECTED]


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


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

Reply via email to