
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Size
|
|
errors.patch |
2005-06-06 09:40 AM |
Emond Papegaaij |
0.9 kb |
|
|
Environment:
|
Operating System: other
Platform: Other
Operating System: other
Platform: Other
|
|
|
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.
|
|
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. |
Show » |
|
Changes ActionErrors to ActionMessages