0%

org.apache.el.parser.ParseException JSTL中EL表达式错误提示

在编写了一个JSP页面后,出现如下错误:

严重: Servlet.service() for servlet jsp threw exception
org.apache.el.parser.ParseException: Encountered " ")" ") "" at line 1, column 13.
Was expecting one of:
"}" ...
"." ...
"[" ...
">" ...
"gt" ...
"<" ...
"lt" ...
">=" ...
"ge" ...
"<=" ...
"le" ...
"==" ...
"eq" ...
"!=" ...
"ne" ...
"&&" ...
"and" ...
"||" ...
"or" ...
"*" ...
"+" ...
"-" ...
"/" ...
"div" ...
"%" ...
"mod" ...

at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2142)

根据org.apache.el.parser.ParseException,很明显知道是EL表达式写错了,Encountered " ")" ") ""可能是右括号写错了,于是找到该JSP页面,这里使用了JSTL标签,发现在一个

<c:forEach var="q" items="${pageView.records}" varStatus="qs">

标签中包含的一个EL表达式出错了:

${q.logopath)}

这里多了一个” )”,把该右括号去掉即可。

欢迎关注我的其它发布渠道