Since ActionErrors validate(... has been replaced with ActionMessages validate(... my code doesn't accept same return type as before. I.e. ActionMessages e = new ActionMessages(); e.add("error", new ActionMessage("error")); return e;
Originally posted by Code Exception: Since ActionErrors validate(... has been replaced with ActionMessages validate...
Not true. In all versions of Struts 1 the return type of the ActionForm's validate method is ActionErrors, just as it has always been. You can verify this for yourself by reading the documentation for the ActionForm class in the Struts 1.3.8 Javadoc.
What may be confusing you is that the class ActionError (No "s" on the end) has been deprecated in favor of ActionMessage. ActionErrors, however, has not been deprecated. [ July 19, 2007: Message edited by: Merrill Higginson ]