jsp里,用include指令包含html页面乱码解决方法(以编码UTF-8为例)
将以下代码加入web.xml里
<jsp-config>
<jsp-property-group>
<description>Special property group for html Configuration JSP example.</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>