Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we remove ActionForm in session scope after finishing its use.

 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one ActionForm in session scope but its use is very limited. I want to know can I remove this ActionForm from session after user finish using it?
[ April 13, 2007: Message edited by: Rajesh Thakare ]
 
Jim Hardin
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose your form bean is called "myFormBean" and is declared in your struts-config.xml like the following:
<form-bean name="myFormBean" type="com.javaranch.saloon.Whatever" />

Then the following would remove it from the session:

[ April 13, 2007: Message edited by: Jim Hardin ]
 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim
 
Jim Hardin
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome, Rajesh.
 
I just had the craziest dream. This tiny ad was in it.
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!