freemarker web.xml

<filter>
<filter-name>sitemesh-freemarker</filter-name>
<filter-class>org.apache.struts2.sitemesh.FreemarkerPageFilter</filter-class>
<init-param>
<param-name>default_encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>


<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>

</filter>


<filter-mapping>
<filter-name>sitemesh-freemarker</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


<servlet>
<servlet-name>JspSupportServlet</servlet-name>
<servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

posted on 2014-04-30 15:50  _故乡的原风景  阅读(118)  评论(0编辑  收藏  举报