This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Cleaning up session variables in an action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cleaning up session variables in an action" Watch "Cleaning up session variables in an action" New topic

Cleaning up session variables in an action

Janice Guevara

Joined: Aug 07, 2006
Posts: 14

I have an application with a menu that contains options.The problem I have is that when I go from one option to another the data that appears is from the option(jsp) I have already visited.I'm sure it is because I haven't cleaned up the session variables.

I want to clean up the variables only when the action is visited the first time.How can I do that?
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
this is a very general question...

all i can tell you is:

yes, the logic _when_ you display _what_ is completely in your hands. this is also valid for the session, which means that you have to take care about all the writing, deleting and interpretation of what is in your session.

pls come back if you need more information on a concrete issue,

hope this helps so far,
I agree. Here's the link:
subject: Cleaning up session variables in an action
It's not a secret anymore!