Movatterモバイル変換


[0]ホーム

URL:


Fork me on GitHub
Edit on GitHub<< back to Interceptors

Create Session Interceptor

This interceptor creates the HttpSession if it doesn’t exist, also SessionMap is recreated and put in ServletActionContext.

This is particular useful when using the <@s.token> tag in freemarker templates. The tagdo require that a HttpSession is already created since freemarker commits the response to the client immediately.

Parameters

There are no parameters for this interceptor.

Extending the Interceptor

There are no obvious extensions to the existing interceptor.

Examples

<actionname="someAction"class="com.examples.SomeAction"><interceptor-refname="createSession"/><interceptor-refname="defaultStack"/><resultname="input">input_with_token_tag.ftl</result></action>
Follow @x

[8]ページ先頭

©2009-2025 Movatter.jp