FreeMarker
<#include "/head.html" parse=false encoding="UTF-8">
JSP
<%@ include file=” ”%>
<jsp:include page=” ” flush=”true”/>
出现乱码有解决方法,在web.xml下作如下配置:
<jsp-config> <jsp-property-group> <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>