首页 > 代码库 > jsp 用include包含html,html部分乱码

jsp 用include包含html,html部分乱码

解决办法:设置web.xml

添加:

  <jsp-config>
    <jsp-property-group>
      <description>html encoding</description>
      <display-name>JSPConfiguration</display-name>
      <url-pattern>*.html</url-pattern>
      <el-ignored>true</el-ignored>
      <page-encoding>UTF-8</page-encoding>
      <scripting-invalid>false</scripting-invalid>
      <include-prelude></include-prelude>
      <include-coda></include-coda>
    </jsp-property-group>
  </jsp-config>

  来源:http://blog.csdn.net/gnail_oug/article/details/51707061

jsp 用include包含html,html部分乱码