A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Clearing session in struts
Joined: Dec 02, 2008
Mar 18, 2009 00:44:36
In my application, when I move from one screen to another, I would like to clear the previous form(session scope) from my session.
What are the ways in which this can be achieved?
Joined: Aug 03, 2008
Mar 18, 2009 00:51:19
Bony you should ask this in the
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
Joined: Jan 28, 2008
Mar 18, 2009 04:22:21
use session.removeAttribute("formBean Name [name attribute of action]"); but in this case you can use request scope right?
Author and ninkuma
Joined: Jan 10, 2002
Mar 18, 2009 05:52:25
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
Asking smart questions
Books by Bear
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Clearing session in struts
NullPointerException caused by session.getAttributeNames() thrown in Enumerator
How to pass HttpSession to SessionBean?
What is in the Session?
Injection problem - not quite sure if this is something i should be using injection for
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014