There's one thing I forgot to mention. That statement I made is for the nightly build/Struts 1.2. ActionError isn't marked as deprecated in 1.1.
Are you talking about the ActionForm.validate() method? For the nightly build, yes, that looks about right. The <html:errors/> tag in the nightly build doesn't even reference ActionError/s in the code -- it works with ActionMessage/s objects. I'm guessing they can't deprecate ActionErrors yet because it's in validate()'s signature. For errors in your Action class, try Wendy's suggestion. Wendy, are you using that code with 1.1? I haven't tried it yet. Now that I think about it, I'll start asking my teammates to start using these in Action classes. If it works, then better to write new Action classes that way than to add more soon-to-be-deprecated code. --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote: > > 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] > __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]