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 2003/07/10 22:56:33 UTC

DO NOT REPLY [Bug 21479] New: - Add ServletRequest or HttpServletRequest to ActionForm constructor

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21479>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21479

Add ServletRequest or HttpServletRequest to ActionForm constructor

           Summary: Add ServletRequest or HttpServletRequest to ActionForm
                    constructor
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: kpost@cfl.rr.com


When constructing an ActionForm object, adding the ServletRequest or 
HttpServletRequest as a parameter to the constructor would allow more 
flexibility in ActionForm initialization and simplify configuration for cases 
when you want to pre-populate a form.

If the ActionForm has access to the HttpServletRequest, it can use information 
from the request, session or application context to pre-populate its values 
without the need to define a separate Action to do the work.   This cuts down 
on the number of Actions that need to be coded and configured.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org