File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to close the session in struts.confiq.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to close the session in struts.confiq.xml " Watch "How to close the session in struts.confiq.xml " New topic
Author

How to close the session in struts.confiq.xml

nazir ahmed
Greenhorn

Joined: Aug 02, 2008
Posts: 16
Hi,

i am using struts1.2. i have create a action,form and jsp page.

so, my struts.confiq.xml file contains

<action attribute="indexForm" name="indexForm" path="/index"
scope="session" type="com.novabits.struts.action.IndexAction"/>


so, i want to close the session scope at the end of action class.

is it possible?.

send reply urgent.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

EaseUp.

You can't run Java code in the struts configuration file. You close the session in the action class, in Java.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

You can do this by








Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to close the session in struts.confiq.xml
 
Similar Threads
Struts custom form question.....
Hide index.jsp or index.do with struts
How to set session id manually ?
iPad - meh...
Error Message rendering twice in struts2 because of integration with spring