struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Butler, Jeff" <jbut...@ciber.com>
Subject RE: DO NOT REPLY [Bug 21479] - Add ServletRequest or HttpServ letRequest to ActionForm constructor
Date Thu, 10 Jul 2003 22:25:26 GMT
Maybe this should move to the user list???  But...

How about doing your initialization in the form's reset method?  That method
gets the request, and it gets called before the form is populated or sent to
an action.

Just a thought...

-----Original Message-----
From: Kurt Post
To: Struts Developers List
Sent: 7/10/03 4:05 PM
Subject: RE: DO NOT REPLY [Bug 21479]  -    Add ServletRequest or
HttpServletRequest to ActionForm constructor



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message