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 2004/07/19 23:31:25 UTC

DO NOT REPLY [Bug 30194] New: - On failed form validation ActionForm should be passed to Action.execute

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: dev@struts.apache.org
        ReportedBy: apachebugs@matt-good.net


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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org