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
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,
, 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
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
[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
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
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
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
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
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
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
: 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
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
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
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
[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
, 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
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?
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
19 matches
Mail list logo