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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:20 PM
To: [EMAIL PROTECTED]
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

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



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


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

Reply via email to