Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.4
-
None
-
Operating System: other
Platform: Other
-
35232
Description
The renderer for the <s:errors/> tag assumes that ActionErrors is used, not
ActionMessages. This will result in a ClassCastException when the following
code is used in the Action:
ActionMessages errors = getErrors(request);
errors.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("prompt.exception"));
saveErrors(request, errors);
The attached patch changes ActionErrors to ActionMessages.