com.opensymphony.webwork.interceptor
Class CreateSessionInterceptor

java.lang.Object
  extended by com.opensymphony.xwork.interceptor.AroundInterceptor
      extended by com.opensymphony.webwork.interceptor.CreateSessionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, Serializable

public class CreateSessionInterceptor
extends com.opensymphony.xwork.interceptor.AroundInterceptor

This interceptor creates the HttpSession.

This is particular usefull when using the <@ww.tokten> tag in freemarker templates. The tag do require that a HttpSession is already created since freemarker commits the response to the client immediately.

Interceptor parameters:

Example:
 
 
 <action name="someAction" class="com.examples.SomeAction">
     <interceptor-ref name="create-session"/>
     <interceptor-ref name="defaultStack"/>
     <result name="input">input_with_token_tag.ftl</result>
 </action>
 
 
 

Version:
$Date$ $Id$
Author:
Claus Ibsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
log
 
Constructor Summary
CreateSessionInterceptor()
           
 
Method Summary
protected  void after(com.opensymphony.xwork.ActionInvocation dispatcher, String result)
           
protected  void before(com.opensymphony.xwork.ActionInvocation invocation)
           
 
Methods inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
destroy, init, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSessionInterceptor

public CreateSessionInterceptor()
Method Detail

before

protected void before(com.opensymphony.xwork.ActionInvocation invocation)
               throws Exception
Specified by:
before in class com.opensymphony.xwork.interceptor.AroundInterceptor
Throws:
Exception

after

protected void after(com.opensymphony.xwork.ActionInvocation dispatcher,
                     String result)
              throws Exception
Specified by:
after in class com.opensymphony.xwork.interceptor.AroundInterceptor
Throws:
Exception


Copyright © 2013 OpenSymphony. All Rights Reserved.