> removing ActionError and ActionErrors, as they are the 
> cause of way too much confusion.

What sort of confusion?  As far as I can tell they are basically the
same as ActionMessages...


On Fri, 4 Feb 2005 07:46:23 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> In short, ActionError is totally deprecated and should never be used.
> ActionMessage is the preferred replacement for it.
> 
> ActionErrors (a collection of ActionMessage objects) has not been
> deprecated yet because it is part of the public API of the ActionForm
> class (it is the return value from validate).  In Struts 1.3, it is
> expected that the ActionForm will get a method like "public boolean
> validate(ActionContext)" in which the ActionContext both carries
> references to any "input" data that the form needs for validation, as
> well as being where any validation errors should be stored (rather
> than being returned.)  The boolean return would be a shorthand way of
> indicating whether the validation passed or not.
> 
> Once this is done, we will be able to fully deprecate ActionErrors,
> and hopefully move swiftly (but not too swiftly, given the interest
> in smooth migrations) towards simply removing ActionError and
> ActionErrors, as they are the cause of way too much confusion.
> 
> Joe
> 
> At 2:10 AM +0100 2/4/05, Laurent wrote:
> >Tim Christopher wrote:
> >>Hi,
> >>
> >>Can anyone let me know when an ActionError should be used in place of
> >>an ActionMessage, or visa versa.  It seems like the ActionMessage is
> >>preferred as it does not encourage markup to be placed within the
> >>resources file.
> >>
> >>Does this mean I should always use the ActionMessage, or does the
> >>ActionError come in useful for certain situations?
> >
> >Yes. ActionError is deprecated.
> >http://struts.apache.org/api/org/apache/struts/action/ActionError.html
> >
> >However you may still use 'ActionErrors' to store you
> >'ActionMessage's that represent an error, but note that
> >     saveErrors(HttpServletRequest, ActionErrors)
> >is deprecated in favour of
> >     saveErrors(HttpServletRequest, ActionMessages)
> >(which still has 'Errors' in it's name!)
> >This means you probably have to call it with
> >     saveErrors(request, (ActionMessages)actionErrors)
> >(as ActionErrors is a subclass of ActionMessages anyway!)
> >(ActionError was also a subclass of ActionMessage)
> >
> >
> >All this seems odd, so please correct me if I'm wrong.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> ---------------------------------------------------------------------
> 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