org.apache.jasper.JasperException: Expecting "jsp:param" standard action with "name" and "value" attributes

 

jasper 


 英 ['dʒæspə]  美 ['dʒæspɚ] 跟读 口语练习

  • n. 碧玉;墨绿色
  • n. (Jasper)人名;(德)雅斯佩尔;(西)哈斯佩尔
 
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
posted @ 2015-10-13 15:04  半天的半天  阅读(1132)  评论(0编辑  收藏  举报