标签:
JasperException 异常请帮
错误提示:org.apache.jasper.JasperException: /public/Login.jsp (line: 29, column: 16) Expecting "jsp:param" standard action with "name" and "value" attributes org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91) org.apache.jasper.compiler.Parser.parseParam(Parser.java:819) org.apache.jasper.compiler.Parser.parseBody(Parser.java:1676) org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:996) org.apache.jasper.compiler.Parser.parseInclude(Parser.java:848) org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1110) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1454)
答案参照:http://blog.csdn.net/jeamking/article/details/6296919
将<jsp:include page="/public/Pub_Head.jsp" flush="true"> 与</jsp:include>放在同一行中解决。如下:
<jsp:include page="/public/Pub_Head.jsp" flush="true"></jsp:include>
原因:当<jsp:include>标签没有参数时,<jsp:include page="include/header.jsp">的配对标签</jsp:include>不能换行。
何种情况是没有参数时?(尚未明白)
另外学习了解
<jsp:include>与 <%@ include /> 的区别:http://jingyan.baidu.com/article/5d368d1e032cbe3f60c05785.html
标签:
原文地址:http://www.cnblogs.com/mxh1099/p/4874663.html