Whats the differance between ActionErrors and ActionMessages ? When we go for ActionErrors and when we go for ActionMessages ?
In some validator-rules.xml files I have seen passing ActionErrors and in some files I have seen ActionMessages.
Pls tell me what would happen in both the cases.. Thanks.
Joined: Feb 15, 2005
Since ActionErrors is a subclass of ActionMessages, any method that requires an ActionMessages parameter can be passed an ActionErrors object and it will be automatically cast to an ActionMessages object.
There's very little difference between the two, and for the most part they can be used interchangeably.