EL標簽錯誤: javax.servlet.jsp.el.ELException: Encountered "/", expected one of ["}", ".", ">", "gt", "=", "ge", "!=", "ne", "[",
2009-07-20 09:52
555 查看
在WAS中運行JSP時報如下錯誤:
Servlet Error]-[action]: javax.servlet.jsp.el.ELException: Encountered "/", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"] at org.apache.commons.el.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:324) at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:250) at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:754) at com.ibm._jsp._SearchAdvanced._jspx_meth_c_forEach_0(_SearchAdvanced.java:204)
解決:找到jsp頁面將EL表達式中的空格和換行去掉,如下state.code后面的空格:
修改為:
Servlet Error]-[action]: javax.servlet.jsp.el.ELException: Encountered "/", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"] at org.apache.commons.el.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:324) at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:250) at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:754) at com.ibm._jsp._SearchAdvanced._jspx_meth_c_forEach_0(_SearchAdvanced.java:204)
解決:找到jsp頁面將EL表達式中的空格和換行去掉,如下state.code后面的空格:
<c:forEach items="${stateList}" var="state"> <option value="${state.code }"> ${state.englishDescription } </option> </c:forEach>
修改為:
<c:forEach items="${stateList}" var="state"> <option value="${state.code}"> ${state.englishDescription} </option> </c:forEach>
相关文章推荐
- 问题解决:javax.servlet.jsp.el.ELException: The "." operator was supplied with an index value of type "java.lang.String" to be applie
- javax.servlet.JspTagException:Illegal use of <when>-style tag without <choose >as its di
- javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
- javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Invalid property in <set>: "age2"
- <c:if test="${empty(*)}"> 报错javax.el.ELException: Function ':empty' not found;
- javax.servlet.JspTagException:Illegal use of &lt;when&gt;-style tag without &lt;choose &gt;as its di
- javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in &lt;forEach&gt
- jbpm 错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFacto
- JSP的jar类错误;The superclass "javax.servlet.http.HttpServlet" was not found on......报错
- JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- jsp文件头部出现红叉解决方法The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JSP JSTL EL 删除空行 <%@ page trimDirectiveWhitespaces="true" %>
- javax.servlet.jsp.el.ELException: An error occurred while getting property
- servlet-api.jar 和 jsp-api.jar报错 和 The superclass "javax.servlet.http.HttpServlet" was not
- 第一次写JSP程序可能会碰到的问题:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa
- jbpm 错误 loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFacto
- javax.servlet.jsp.JspException: Missing message for key "xxxxxx"
- 新建JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- oozie错误:javax.servlet.jsp.el.ELException: variable [***] cannot be resolved
- Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File &quot;/pageFoo