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

Tomcat6/7 SSI配备

2012-10-31 
Tomcat6/7 SSI配置在$CATALINA_BASE/conf/servlet.xml中的Context标签加入属性privilegedtrue,Context

Tomcat6/7 SSI配置

    在$CATALINA_BASE/conf/servlet.xml中的Context标签加入属性privileged="true",<Context privileged="true">在$CATALINA_BASE/conf/web.xml中把ssi相关的servlet servlet-mapping? filter filter-mapping注释去掉就行在$CATALINA_BASE/conf/web.xml中的ssi servlet配置中添加以下初始配置以解决乱码问题:
    ??????? <init-param>
    ????????? <param-name>inputEncoding</param-name>
    ????????? <param-value>utf-8</param-value>
    ??????? </init-param>
    ??????? <init-param>
    ????????? <param-name>outputEncoding</param-name>
    ????????? <param-value>utf-8</param-value>
    ??????? </init-param>
    其中utf-8应该与页面的编码方式相同

热点排行