Empty cache of messages not created by ActionContext
----------------------------------------------------
Key: STR-3178
URL: https://issues.apache.org/struts/browse/STR-3178
Project: Struts 1
Issue Type: Bug
Components: Core
Affects Versions: 1.3.10
Reporter: Paul Benedict
Assignee: Paul Benedict
Priority: Minor
Fix For: 1.3.11, 1.4.0
The JavaDoc for ActionContext states:
{code}
/**
* <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();
{code}
And also for Struts 1.4:
{code}
/**
* <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();
{code}
Neither go to create the cache. They will return null if key is not present in
the context.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.