首页 > Web开发 > 详细

org.apache.jasper.JasperException

时间:2017-03-15 00:42:22      阅读:327      评论:0      收藏:0      [点我收藏+]

程序在部署的时候,出现的jsp异常,

详细的异常日志

org.apache.jasper.JasperException: /admin/account/queryAccount.jsp(15,2) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
	at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1186)
	at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
	at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
	at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1785)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

  多的我就不粘了

  我感觉出这个问题是由于jstl库的问题,当我们使用JSTL一定要引入(jstl standard 两个包),然后就是版本的问题了,就是jsp的版本和jstl的兼容不好吧

  最后的解决方式是

  <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> 

  替换成这个

  <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

就可以成功跑出页面       很开心

org.apache.jasper.JasperException

原文:http://www.cnblogs.com/obesityspace/p/6551403.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!