struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: How do you keep your session junk free?
Date Fri, 07 Mar 2003 12:30:04 GMT
Take a look at the workflow extension. I think it does something along those
lines.

http://www.livinglogic.de/Struts/

-----Original Message-----
From: Jose Gonzalez Gomez [mailto:jgonzalez@opentechnet.com]
Sent: Friday, 7 March 2003 20:23
To: Struts Users Mailing List
Subject: Re: How do you keep your session junk free?



    A few years ago, when Struts was not still available, we programmed
a web layer framework much more primitive than Struts but with similar
functionality for the project I was involved. One of the functionalities
we had was request flow control, so we were sure that the user wasn't
going back and forth and we had the right information in the session.
Whenever there was a request that was not proper following the current
flow, a message error was showed to the user, with the suggestion to
begin the flow again.

    We didn't reach that far, but I think such a functionality may
provide a way to define "wizards" or page flows and let the application
have a callback method to clean the session stored in data in case the
user leaves the wizard. This is a functionality that I'd love to have in
Struts. Right now, I try to clean the session when I reach the final
step of such a series of pages, but you are not guaranteed that the user
ever reaches it.

    The other solution is having all the data introduced so far by the
user in hidden fields (though I don't recommend it).

    Jose

Jörg Maurer wrote:

>AFAIK, why not put form bean in hashtable under well known name in
>application scope - last resort, cause as you mentioned request not
>applicable, session not available.... you are in full charge of form
>bean. populate that bean in application scope as you like from newly
>created form bean or replace it all at once. Have to e.g. prepend key
>with user information(getSessionID()) to get same bean for user back?
>
>Greets Jörg
>
>-----Original Message-----
>From: julian green [mailto:julian.green@jacobsrimell.com]
>Sent: Freitag, 07. März 2003 10:33
>To: Struts Users Mailing List
>Subject: How do you keep your session junk free?
>
>
>How do you prevent the session from filling up with junk from previous
>screens?  Or to put it another way:
>
>I have written some screens that have to store the form bean in the
>session scope as each screen is interconnected and uses the same
>instance of the form bean.   If I change the scope to request a new form
>
>bean is created for each screen (every time a jsp file is rendered).  Is
>
>there a way of implementing multiple screens with the same form bean
>with a request scope?
>
>Julian
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message