org.apache.jasper.JasperException

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

详细的异常日志express

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)

  多的我就不粘了apache

  我感受出这个问题是因为jstl库的问题,当咱们使用JSTL必定要引入(jstl standard 两个包),而后就是版本的问题了,就是jsp的版本和jstl的兼容很差吧app

  最后的解决方式是jsp

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

  替换成这个日志

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

就能够成功跑出页面       很开心部署

 

 

追加,貌似替换成这个导入也没有问题servlet

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

相关文章
相关标签/搜索