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 any
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 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" fo
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,
_
as a final addendum - the struts-config file allows you to determine what
scope your form beans sit in
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 2:36 AM
Subject: Re: Session Cleanup
> No problem, it's a good habit to get into checking the javadoc or user
> guides
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 collections in the session? How and when to remove
these collections from the session?
Regards,
ATTA
er 17, 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:
-To: "Struts Users Mailing List" <[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.
Regard
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.c
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
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
> We
: "struts users mailing list" <[EMAIL PROTECTED]>
Subject: 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
aig 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
> &g
Users Mailing List" <[EMAIL PROTECTED]>
Subject: 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
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
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 C
ot;Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users 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" <[EM
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 sessi
nahan [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: Strut
erformance 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
19 matches
Mail list logo