Sounds like a good idea. Thanks -----Original Message----- From: Butler, Jeff [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 6:25 PM To: 'Struts Developers List ' Subject: RE: DO NOT REPLY [Bug 21479] - Add ServletRequest or HttpServletRequest to ActionForm constructor
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: [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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]