Description
The JavaDoc for ActionContext states:
/**
- <p> Retrieve messages from an internal cache, creating an empty cache
- if one is not already present. </p>
* - @return The ActionMessage cache for errors
*/
ActionMessages getMessages();
/**
- <p> Retrieve error messages from an internal cache, creating an empty
- cache if one is not already present. </p>
* - @return The ActionMessage cache for errors
*/
ActionMessages getErrors();
Despite the clear contract stated, neither go to create the cache. They will return null if not present in the context.