Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.2.4
-
None
-
None
-
Operating System: All
Platform: All
-
31729
Description
org.apache.struts.action.Action contains
protected ActionMessages getErrors(HttpServletRequest request) {
ActionMessages errors =
(ActionMessages) request.getAttribute(Globals.ERROR_KEY);
if (errors == null)
return errors;
}
It may be considered more robust if the new messages object was always placed
in the request attribute thusly:
protected ActionMessages getErrors(HttpServletRequest request) {
ActionMessages errors =
(ActionMessages) request.getAttribute(Globals.ERROR_KEY);
if (errors == null)
return errors;
}