org.apache.jasper.JasperException: /Home/MdAAO/Moures.jsp(48,16) PWC6038
JAVA_SAE_Fatal_error:
org.apache.jasper.JasperException: /Home/MdAAO/Moures.jsp(48,16) PWC6038: "${(empty lists.studyTime)?"你猜":lists.studyTime}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${(empty lists.studyTime)?"你猜":lists.studyTime}
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:78)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:373)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:185)
at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:649)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:752)
at org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:946)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2341)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1501)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2341)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2347)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:498)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1853)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:435)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:205)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
org.apache.jasper.JasperException: /Home/MdAAO/Moures.jsp(48,16) PWC6038: "${(empty lists.studyTime)?"你猜":lists.studyTime}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${(empty lists.studyTime)?"你猜":lists.studyTime}
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:78)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:373)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:185)
at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:649)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:752)
at org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:946)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2341)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1501)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2341)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2347)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:498)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2291)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1853)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:435)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:205)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServl yq38.javaruntime
错误原因:${(empty lists.studyTime)?"你猜":lists.studyTime} 各表达式之间没有留空格
应为${(empty lists.studyTime) ? "你猜" : lists.studyTime}
错误的写法:
<input type="hidden" value="${account.name==null?account.userName:account.name}" id="userName.account.info">
改为:
<input type="hidden" value="${ account.name==null ? account.userName : account.name}" id="userName.account.info">