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
questions in the Struts forum. I have moved this post there for you.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Clearing session in struts
Injection problem - not quite sure if this is something i should be using injection for
NullPointerException caused by session.getAttributeNames() thrown in Enumerator
What is in the Session?
How to pass HttpSession to SessionBean?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015