Also, as I tried to suggest once before (in a riddle -- "a single key can open many doors" -- ha ha ha grasshoppah), you can store references to many objects under a single attribute key (using structured/nested beans, maps, etc.). Delete the single attribute (perhaps when a user returns to a main view) and you delete the entire tree of references, freeing up all that memory with one statement and without having to write too much conditional code. I'm not sure if this strategy is feasible with Struts session-scoped forms though.
Erik
[EMAIL PROTECTED] wrote:
Hi, Erik and Freddz.
I like the idea of having a wizard whose data gets cleaned as soon as it's scope is left. How about this: Have all resources for one wizard in a URL subdirectory. Have a similar naming convention for the resources the wizard leaves in the session. If a http request comes for an url, the janitor filter could remove all wizard's session resources that do not match the current request's directory. This way the janitor could be fairly generic.
Hiran
----------------------------------------- Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99
-----Original Message-----
From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 7. Oktober 2004 11:55
To: Struts Users Mailing List
Subject: Re: cleaning session
This is similar to what I usually implement. I have been gradually developing a "session manager" or perhaps a "session janitor" that watches/tracks workflow and cleans up stuff from memory (session) that isn't needed anymore. It could be a filter or a custom request processor in the world of Struts. Since I most often use my own controller Servlet I have my own place to put it, but basically, it gets invoked before any request handlers.
Erik
Freddy Villalba A. wrote:
but this isHi,
I have never implemented anything like this (with Struts),
intersections and / orthe first thing I can think of...
Assuming your wizard is one-way (by this, I mean you have a linear graph - 1<->2<->3... -, no bifurcations and /or
parallelism), you could "define" your "workflow" by"tagging" the pages it is made of...
then, manage the wizard from a filter that is able to detect your getting into one and your leaving it. Once it detectssomeone's left a
wizard, and knowing its components, it could have themcleaned off the
method. Resetcorresponding Session.
I believe, however, that this approach wouldn't work if the graph is not linear.
I'll be glad to here your feedback (everybody).
HTH, Freddy.
-----Mensaje original----- De: Paul McCulloch [mailto:[EMAIL PROTECTED] Enviado el: jueves, 07 de octubre de 2004 10:27 Para: 'Struts Users Mailing List' Asunto: RE: cleaning session
That isn't the purpose of the (confusingly named) reset
is there to, typically, deal with the html forms submitcheckbox fields
call reset(they don't submit anything if they are null).
Paul
-----Original Message----- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 5:43 PM To: Struts Users Mailing List Subject: Re: cleaning session
If you have your action in HttpSession, why don`t you just
clicks onwhenever a user clicks on the button supposed to start this wizard?
--- struts lover <[EMAIL PROTECTED]> escreveu:
Hello everyone,
I am facing this problem of session. I have my action form in session(a wizard like thing). Now if the user starts filling in values and clicks on the NEXT button, to go on to the next screen and then instead of completing the process of application,
---------some other link.------------------------------------------------------------
Again he wants to start with the application process, the form get pre-populated with the previous values, as the form in still in session. I want a clean form.
How to overcome this problem???
Any ideas???
Thanks.
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
---------
__________________________________________________To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
------------------------------------------------------------
**********************************************************************To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axios Email Confidentiality Footermessage.
Privileged/Confidential Information may be contained in this
If you are not the addressee indicated in this message (orresponsible
for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you shoulddestroy this
message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other informationexpressed in
this message are not given or endorsed by my Company oremployer unless
otherwise indicated by an authorised representativeindependent of this message.
WARNING:guarantee
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot
that attachments do not contain computer virus code. Youare therefore
strongly advised to undertake anti virus checks prior toaccessing the
attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of anyattachment and
undertakes no liability for loss or damage howsoever caused.*********
*************************************************************
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]