Struts and session cleanup

2003-04-04 Thread Ted Husted
Struts puts a locale attribute in the session, but that should remain for the duration of the user's session. It's not something you should worry about cleaning up. The container will take care of it when the session times-out. If you put an ActionForm in the session (not really recommended

Struts and session cleanup

2003-04-03 Thread varanasi kiran
Hi, Can any one suggest what is the best practise for session clean up ? In my opinion, Struts makes session clean up a mess. I understand that I can use scope for session data. But, for global sessions, what is the good way to clean sessions ? Thanks,

RE: Struts and session cleanup

2003-04-03 Thread Chen, Gin
, April 03, 2003 1:24 PM To: [EMAIL PROTECTED] Subject: Struts and session cleanup Hi, Can any one suggest what is the best practise for session clean up ? In my opinion, Struts makes session clean up a mess. I understand that I can use scope for session data. But, for global sessions, what

Re: Session Cleanup

2002-10-18 Thread atta ur-rehman
implications of this change? Regards, ATTA - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 11:50 AM Subject: Re: Session Cleanup I believe struts leaves form beans in the session forever. They won't really grow in size

RE: Session Cleanup

2002-10-18 Thread Hoang, Hai
[mailto:craigmcc;apache.org] Sent: Thursday, October 17, 2002 3:37 PM To: Struts Users Mailing List Subject: Re: Session Cleanup On Thu, 17 Oct 2002, atta ur-rehman wrote: Date: Thu, 17 Oct 2002 13:36:41 -0700 From: atta ur-rehman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

RE: Session Cleanup

2002-10-18 Thread Wendy Smoak
Hai wrote: I often stored my form beans in a session scope. I've a routine that looping through the session and destroy the unused forms. The tricky part is how to determine with forms are no longer in used. Anyone out there using this technique? I'm storing ActionForm instances in session

Re: Session Cleanup

2002-10-18 Thread David Graham
Mailing List [EMAIL PROTECTED] Subject: Re: Session Cleanup Date: Thu, 17 Oct 2002 14:43:48 -0700 Ok, David, I read the doc! now what? - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:58 PM Subject: Re: Session Cleanup Try

Re: Session Cleanup

2002-10-18 Thread atta ur-rehman
So how do you know which ones are not used anymore? - Original Message - From: Hoang, Hai [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:49 PM Subject: RE: Session Cleanup I often stored my form beans in a session scope. I've

Re: Session Cleanup

2002-10-18 Thread David Graham
: Re: Session Cleanup Date: Thu, 17 Oct 2002 13:55:55 -0700 Thanks Craig. That explains. I think we can afford few more cpu cycles instead of memory. Now is there a way to store collections in the request scope instead of session scope? by collections I mean, collections used to populate html:select

Re: Session Cleanup

2002-10-18 Thread atta ur-rehman
R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:36 PM Subject: Re: Session Cleanup On Thu, 17 Oct 2002, atta ur-rehman wrote: Date: Thu, 17 Oct 2002 13:36:41 -0700 From: atta ur-rehman [EMAIL PROTECTED] Reply-To: Struts

Re: Session Cleanup

2002-10-18 Thread Craig R. McClanahan
On Thu, 17 Oct 2002, atta ur-rehman wrote: Date: Thu, 17 Oct 2002 13:36:41 -0700 From: atta ur-rehman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Session Cleanup Thanks, David. Putting commonly used

Re: Session Cleanup

2002-10-18 Thread David Graham
: Session Cleanup Date: Thu, 17 Oct 2002 10:20:24 -0700 When does struts framework remove ActionFrom objects from the session, if at all. I'm worried if I'd be making my session object too large. Moreover, what are the best practices for storing html:select collections in the session? How and when

Re: Session Cleanup

2002-10-18 Thread atta ur-rehman
Thanks David, that certainly help. And excuse me for my naivety! Thanks once more. Regards, ATTA - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 5:44 PM Subject: Re: Session Cleanup Well, in the ServletRequest

Re: Session Cleanup

2002-10-18 Thread Eddie Bush
After doing a quick check through the source ... find . -name *.java | xargs grep removeAttribute It would appear there are a few places that the method gets called. A cursory examination of each suggests they are all to remove things which were temporarily placed there and shouldn't be

Re: Session Cleanup

2002-10-18 Thread atta ur-rehman
Ok, David, I read the doc! now what? - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:58 PM Subject: Re: Session Cleanup Try looking through the servlet javadoc here: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/ Look

Re: Session Cleanup

2002-10-18 Thread David Graham
[EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Session Cleanup Date: Thu, 17 Oct 2002 18:10:31 -0700 Thanks David, that certainly help. And excuse me for my naivety! Thanks once more. Regards, ATTA - Original Message - From: David Graham [EMAIL PROTECTED

RE: Session Cleanup

2002-10-18 Thread Hoang, Hai
, 2002 4:13 PM To: Struts Users Mailing List Subject: Re: Session Cleanup So how do you know which ones are not used anymore? - Original Message - From: Hoang, Hai [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:49 PM Subject: RE: Session

Session Cleanup

2002-10-18 Thread atta ur-rehman
When does struts framework remove ActionFrom objects from the session, if at all. I'm worried if I'd be making my session object too large. Moreover, what are the best practices for storing html:select collections in the session? How and when to remove these collections from the session?

Re: Session Cleanup

2002-10-18 Thread chanoch
2:36 AM Subject: Re: Session Cleanup No problem, it's a good habit to get into checking the javadoc or user guides before posting a question to a list or forum. Not that we don't want to help; it just allows you to ask good questions. Good luck! David From: atta ur-rehman [EMAIL