首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

web.xml freemarker配备

2012-07-18 
web.xml freemarker配置web.xmlservlet? servlet-namefreemarkerServlet/servlet-name? servlet-cl

web.xml freemarker配置

web.xml

<servlet>
? <servlet-name>freemarkerServlet</servlet-name>
? <servlet-class>com.web.commons.template.FreemarkerServlet</servlet-class>
? <init-param>
??? <param-name>TemplatePath</param-name>
??? <param-value>/</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</param-value>
? </init-param>
? <init-param>
??? <param-name>template_update_delay</param-name>
??? <param-value>0</param-value>
? </init-param>
? <init-param>
??? <param-name>default_encoding</param-name>
??? <param-value>UTF-8</param-value>
? </init-param>
? <init-param>
??? <param-name>number_format</param-name>
??? <param-value>0.##########</param-value>
? </init-param>
? <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
? <servlet-name>freemarkerServlet</servlet-name>
? <url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
? <servlet-name>freemarkerServlet</servlet-name>
? <url-pattern>*.htm</url-pattern>
</servlet-mapping>

热点排行