struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35232] New: - ErrorsRenderer assumes ActionErrors
Date Mon, 06 Jun 2005 07:39:49 GMT
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


Mime
View raw message