File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
I agree. Here's the link:
subject: Clearing session in struts
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
NullPointerException caused by session.getAttributeNames() thrown in Enumerator
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014