struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject RE: DO NOT REPLY [Bug 21479] - Add ServletRequest or HttpServletRequest to ActionForm constructor
Date Fri, 11 Jul 2003 03:34:35 GMT
There is some movement towards separating Struts from the Servlet API so
that it may be used in by the upcoming Portlets API.  Craig is
implementing a new RequestProcessor system that accomodates that and I
would hate to move things in the opposite direction by tying ActionForms
even more to HttpServletRequest objects.

David

--- Kurt Post <kpost@cfl.rr.com> wrote:
> 
> 
> I wasn't intending that the request object be kept around.  Isn't it
> true
> that even if an ActionForm object is kept in the session scope, it is
> created in response to a HTTP request?
> 
> The idea is to simply use the ServletRequest or HttpServletRequest that
> caused the ActionForm object to be created to initialize the properties
> of
> the ActionForm.  The ServletRequest or HttpServletRequest wouldn't be
> kept
> as an attribute of the ActionForm so there is no serialization problem.
> 
> If an ActionForm object could get a hold of the HttpServletRequest (and
> thus
> HttpSession) when it is created, you could eliminate the need for a
> separate
> Action to pre-populate the ActionForm properties.
> 
> Does this make my request make any more sense or am I still missing
> something.
> 
> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: Thursday, July 10, 2003 5:20 PM
> To: struts-dev@jakarta.apache.org
> Subject: DO NOT REPLY [Bug 21479] - 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
> 
> dgraham@apache.org changed:
> 
>            What    |Removed                     |Added
>
----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |INVALID
> 
> 
> 
> ------- Additional Comments From dgraham@apache.org  2003-07-10
> 21:19 -------
> ActionForm is Serializable and ServletRequest is not.  Even if we made
> the
> request variable transient, there would be no way to retrieve the
> request
> object
> when the form was deserialized.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Mime
View raw message