Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cleaning up session variables in an action

 
Janice Guevara
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic