本人使用的是taglib做为模板页,而后碰到的这个问题,若是有相似的能够参考。java
<%@tag description="Overall Page template" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@attribute name="header" fragment="true" %> <%@attribute name="footer" fragment="true" %> <%@attribute name="bottom" fragment="true" required="false" %> <%@attribute name="top" fragment="true" %>
首先注意:attribute的name必须小写!若是大写,会报上述问题。jsp
第二,实际调用的真实jsp页面,全部的attribute必须在jspBody以前!!!ui