这个拦截器创建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>