A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Clearing session in struts
Bony Sen
Greenhorn
Joined: Dec 02, 2008
Posts: 23
posted
Mar 18, 2009 00:44:36
0
Hi,
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?
Thanks
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
2
I like...
posted
Mar 18, 2009 00:51:19
0
Bony you should ask this in the
struts forum
...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Mar 18, 2009 04:22:21
0
use session.removeAttribute("formBean Name [name attribute of action]"); but in this case you can use request scope right?
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56543
14
I like...
posted
Mar 18, 2009 05:52:25
0
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Clearing session in struts
Similar Threads
NullPointerException caused by session.getAttributeNames() thrown in Enumerator
session creation
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