處理 javax.el.ELException: Failed to parse the expression 報錯

  在JSP的表達式語言中,使用了  <h3>是否新Session:${pageContext.session.new}</h3>  輸出Session是否是新的,此時遇到了  javax.el.ELException: Failed to parse the expression  報錯。這裏主要是因爲在Tomcat7中表達式的權限變小了,如果遇到JAVA的關鍵字,就會出現此種錯誤,在這個例子中
相關文章
相關標籤/搜索