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

On failed form validation ActionForm should be passed to Action.execute

           Summary: On failed form validation ActionForm should be passed to
                    Action.execute
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When the form validation fails, the input page is displayed, which if necessary
invokes a Struts Action.  If the form is in the request scope from this Action
it is possible to access the form which failed validation through:
(ActionForm) request.getAttribute(mapping.getAttribute());

However, I believe that the form should also be accessible through the
ActionForm parameter of the Action's "execute" function.  For a form in the
session scope I believe that the form will be accessible through this parameter,
but if the form was in the request scope it will only be accessible through the
request.  This seems to make the Action unfortunately tied to whether the form
is in the request or session scope.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to