Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to close the session in struts.confiq.xml

 
nazir ahmed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can do this by







 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic