• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to close the session in struts.confiq.xml  RSS feed

 
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: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can do this by







 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!