Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic