*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cleaning up session variables in an action" Watch "Cleaning up session variables in an action" New topic
Author

Cleaning up session variables in an action

Janice Guevara
Greenhorn

Joined: Aug 07, 2006
Posts: 14
Hi,

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,
jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cleaning up session variables in an action