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=34635>.
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=34635

           Summary: Action.getErrors(request) should put new errors
                    ActionMessages in the request scope
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


would like to see something like this:

protected ActionMessages getErrors(HttpServletRequest request) {
    ActionMessages errors =
        (ActionMessages) request.getAttribute(Globals.ERROR_KEY);
    if (errors == null) {
        errors = new ActionMessages();
        request.setAttribute(Globals.ERROR_KEY, errors);
    }
    return errors;
}

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to