正常情况应该是使用了 <%@include%>
1. 在项目的web.xml中加入以下配置即可
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>
</jsp-config>
2. 在tomcat 的配置文件 web.xml中找到 jspServlet 加入以下配置
<init-param>