JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > Interceptors > Create Session Interceptor
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  Create Session Interceptor
Added by 黑灵, last edited by scud on May 19, 2006  (view change)
Labels: 
(None)

这个拦截器创建HttpSession对象.
在用到FreeMarker模板的<@ww.tokten>标签时很有用。这个标签需要在freemarker把response提交给客户端时必须已经存在一个HttpSession对象。

参数

扩展

例子

<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>
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators