81,092
社区成员
发帖
与我相关
我的任务
分享
<#--文章内容-->
<#macro ArtiContent>
<#include arti.relPath(pageNo) parse=false/>
</#macro>
<servlet>
<servlet-name>freemarker</servlet-name>
<servlet-class>xxx.xxx.xxx.EnhancedFreemarkerServlet</servlet-class>
<!--
Please see following URL about the configuration of the FreemarkerServlet settings.
http://freemarker.org/docs/pgui_misc_servlet.html
-->
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/WEB-INF/ftls</param-value>
<!--
When storing it outside the context.(C:\ftls or /ftls direcroty)
<param-value>file:///var/cws_contents/ftls/xxxx</param-value>
-->
</init-param>
<init-param>
<param-name>NoCache</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>ContentType</param-name>
<param-value>text/html; charset=UTF-8</param-value>
<!--
It is not possible to use it because it is not supported with IE6
and FireFox3 though the following setting is recommended in W3C.
<param-value>application/xhtml+xml; charset=UTF-8</param-value>
-->
</init-param>
<!--
Please see following URL about the configuration of the FreeMarker settings.
http://freemarker.org/docs/pgui_config_settings.html
http://freemarker.org/docs/api/freemarker/core/Configurable.html#setSetting(java.lang.String,%20java.lang.String)
http://freemarker.org/docs/api/freemarker/template/Configuration.html#setSetting(java.lang.String,%20java.lang.String)
-->
<load-on-startup>1</load-on-startup>
</servlet>