I for one think that a lot of this is guilding the lily and is counter productive.

At 10:19 AM 2/10/2004, Joe Germuska wrote:
At 12:56 PM -0500 2/10/04, Slattery, Tim - BLS wrote:
> The deprecation is for the nightly build/Struts 1.2
 distribution.  If you're using 1.1 (like I am), there's no
 saveErrors(request, actionMessages) just yet.

Then there's no point in converting any ActionError or ActionErrors usage to ActionMessage or ActionMessages yet, since you can't send it to the JSP page in such a way that the <html:messages > tag can find the error messages.

Sounds like I've been wasting my time.

ActionErrors extends ActionMessages, even in Struts 1.1


http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-struts/src/share/org/apache/struts/action/ActionErrors.java?content-type=text%2Fplain&rev=1.11

Clearly there's a lot of confusion around this, but the idea behind the naming was that everything "messages" is a new, more generalized approach to everything which was "errors" -- the classes in o.a.s.action and the tag library classes. Since ActionMessages was created as a super class of ActionErrors, backwards compatibility should be complete.

html:messages by default looks for the object stored under the *Errors* key as another piece of trying to make all this backwards compatible. This probably adds a bit of confusion as well, unfortunately.

I doubt you've been wasting your time, although I'll admit that it's been a few months since I was using a pure 1.1 release, and there may be something I've forgotten.

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


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