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
时间: 2024-10-25 14:34:05

org.apache.jasper.JasperException: Expecting "jsp:param" standard action with "name" and "value" attributes的相关文章

报错:org.apache.jasper.JasperException: /index.jsp (line: 1, column: 17) equal symbol expected

现象:写了如下一个jsp文件,导入需要用到的两个包: 运行结果报错:org.apache.jasper.JasperException: /index.jsp (line: 1, column: 17) equal symbol expected at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDis

org.apache.jasper.JasperException: xxxx.jsp(118,24) Attribute style invalid for tag formatNumber according to TLD

错误:org.apache.jasper.JasperException: /projm/projBudgetChangeOverview.jsp(118,24) Attribute style invalid for tag formatNumber according to TLD原因:1.在struts标签里添加了struts不支持的属性或者某个属性名写错了;2.没有引用sturts2对应的标签库;3.jar没build

org.apache.jasper.JasperException: /index.jsp (line: 24, column: 26) attribute for %&gt;&quot; is not proper

JSP页面,本来想使用标签进行请求跳转的,然后就报了这么一个错误,原来这个里面还不能写表达式,之前一直以为可以的.当然也可以使用另外一个标签. <body> <jsp:forward page="<%=basePath %>msgServlet?action=getAllList"></jsp:forward> </body> 之后改成这样使用EL表达式就OK了. <body> <jsp:forward pa

org.apache.jasper.JasperException: /index.jsp(14,2) The s:form tag declares that it accepts dyna

..................... ..................... ..................... 这个异常了,昨天还好好的,早上一来就出这个毛病了,网上找了找,说什么的网友都有,最后发现问题出在项目中用到的javax.servlet.jar.javax.servlet.jsp.jar包上面了,删除之后就好了.

JSP异常之org.apache.jasper.JasperException(转)

According to TLD or attribute directive in tag file, attribute items does not accep t any expressions 严重: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /selectorTagtest.jsp(26,8) According to TLD or attribute di

Jsp抛出异常org.apache.jasper.JasperException

在eclipse中部署项目web有时候访问jsp会抛出以下类似的异常信息 org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp 部署web项目,如果抛出此异常.请保证 standard.jar与jstl.jar 两个jar包是否 在部署的项目中存在,如果不存在,请把 这两个包加入 /WEB-INF/lib 中.然后保证jsp中引用的版本地址 和 此版本地址是一致的: <%@ taglib uri=

Count:858org.apache.jasper.JasperException: Unable to compile class for JSP

1.错误描述 Count:858org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 12 in the jsp file: /resource/pages/storageTankQuery/storageTankInfo/storageTankInfo.jsp basePath cannot be resolved to a variable 9: // 璺

org.apache.jasper.JasperException: /pages/column.jsp (line: 8, column: 1) File &quot;pathTags.jsp&quot; not f

1.错误描述 21-Mar-2015 00:57:40.934 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log SessionListener: contextDestroyed() 21-Mar-2015 00:57:40.934 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Con

org.apache.jasper.JasperException: Unable to compile class for JSP

部署war时,遇到下面异常: exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:604) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328