com.opensymphony.webwork.interceptor
Class CreateSessionInterceptor
java.lang.Object
com.opensymphony.xwork.interceptor.AroundInterceptor
com.opensymphony.webwork.interceptor.CreateSessionInterceptor
- All Implemented Interfaces:
- Interceptor, Serializable
public class CreateSessionInterceptor
- extends 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: 2007-01-09 00:24:16 +0800 (Tue, 09 Jan 2007) $ $Id: CreateSessionInterceptor.java 2795 2007-01-08 16:24:16Z tmjee $
- Author:
- Claus Ibsen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateSessionInterceptor
public CreateSessionInterceptor()
before
protected void before(ActionInvocation invocation)
throws Exception
- Description copied from class:
AroundInterceptor
- Called before the invocation has been executed.
- Specified by:
before
in class AroundInterceptor
- Throws:
Exception
after
protected void after(ActionInvocation dispatcher,
String result)
throws Exception
- Description copied from class:
AroundInterceptor
- Called after the invocation has been executed.
- Specified by:
after
in class AroundInterceptor
result
- the result value returned by the invocation
- Throws:
Exception