A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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.
Books by Bear
I agree. Here's the link:
- it saves me about five hours per week
subject: Clearing session in struts
NullPointerException caused by session.getAttributeNames() thrown in Enumerator
Injection problem - not quite sure if this is something i should be using injection for
How to pass HttpSession to SessionBean?
What is in the Session?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013