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:
> 
> >Hi,
> >
> >I have never implemented anything like this (with Struts), 
> but this is 
> >the 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 
> intersections 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 detects 
> someone's left a 
> >wizard, and knowing its components, it could have them 
> cleaned off the 
> >corresponding 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 
> method. Reset 
> >is there to, typically, deal with the html forms submit 
> checkbox fields 
> >(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 
> call reset 
> >>whenever 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, 
> clicks on 
> >>>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 Footer
> >Privileged/Confidential Information may be contained in this 
> message. 
> >If you are not the addressee indicated in this message (or 
> responsible 
> >for delivery of the message to such person), you may not copy or 
> >deliver this message to anyone. In such case, you should 
> destroy 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 information 
> expressed in 
> >this message are not given or endorsed by my Company or 
> employer unless 
> >otherwise indicated by an authorised representative 
> independent of this message.
> >WARNING:
> >While Axios Systems Ltd takes steps to prevent computer viruses from 
> >being transmitted via electronic mail attachments we cannot 
> guarantee 
> >that attachments do not contain computer virus code.  You 
> are therefore 
> >strongly advised to undertake anti virus checks prior to 
> accessing the 
> >attachment to this electronic mail.  Axios Systems Ltd grants no 
> >warranties regarding performance use or quality of any 
> attachment 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]

Reply via email to