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.
Javardhan:
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
posted
0
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.