DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29679>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29679

Validator returns ActionErrors instead of ActionMessages





------- Additional Comments From [EMAIL PROTECTED]  2004-06-18 20:07 -------
It's not "magic" -- it's open source.  :^)  See the 'processValidate' method of 
RequestProcessor and all 
the secrets will be revealed:

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/action/
RequestProcessor.java?view=markup

The problem is this: you write "Since in my Actions I am supposed to use 
.saveMessages(ActionErrors)," 
and this is not true.  In your actions, you are supposed to use 
"saveErrors(ActionMessages)".  

When it was realized that there was value in being able to use the "ActionErrors" 
pattern -- a container 
class which acts like a map in some ways and which contains objects that can help use 
message 
bundles to get message text -- then all of the behavior of ActionErrors was moved up 
into a class 
called ActionMessages, to help indicate that you could use it for all kinds of 
messages, errors or not.  
ActionErrors was then declared a subclass of ActionMessages

Since it does nothing except extend ActionMessages, ActionErrors has been deprecated, 
and almost all 
references have been replaced with references to ActionMessages.  

There's clearly a lot of confusion around this.  Anyone who can point to places in the 
documentation 
that are misleading or wrong is encouraged to file enhancement bugzilla issues 
pointing out problem 
spots.

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

Reply via email to