This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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......"
 
 
subject: How to close the session in struts.confiq.xml
 
Similar Threads
iPad - meh...
Struts custom form question.....
Hide index.jsp or index.do with struts
How to set session id manually ?
Error Message rendering twice in struts2 because of integration with spring