You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/06/06 09:39:49 UTC
DO NOT REPLY [Bug 35232] New: -
ErrorsRenderer assumes ActionErrors
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35232>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35232
Summary: ErrorsRenderer assumes ActionErrors
Product: Struts
Version: 1.2.4
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Struts-Faces Library
AssignedTo: dev@struts.apache.org
ReportedBy: e.papegaaij@emaxx.nl
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org