HTTP Status 500 - An exception occurred processing at line 35

时间:2023-09-07 08:53:02

HTTP Status 500 - An exception occurred processing JSP page /manage/addCategory.jsp at line 35


type Exception report

message An exception occurred processing JSP page /manage/addCategory.jsp at line 35

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /manage/addCategory.jsp at line 35

32: 				}
33: }
34: var nameValue=encodeURI(this.value);
35: xhr.open("GET","${pageContext.request.ContextPath}/manage/ManageServlet?op=checkCategory&Name="+nameValue+"&time="+new Date().getTime());
36: xhr.send(null);
37: }
38: } Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
com.lce.filter.SetAllCharacterEncodingFilter.doFilter(SetAllCharacterEncodingFilter.java:45)

root cause

javax.el.PropertyNotFoundException: Property 'ContextPath' not found on type com.lce.filter.GetHttpServletRequest
javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:229)
javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:206)
javax.el.BeanELResolver.property(BeanELResolver.java:317)
javax.el.BeanELResolver.getValue(BeanELResolver.java:85)
org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:104)
org.apache.el.parser.AstValue.getValue(AstValue.java:182)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:967)
org.apache.jsp.manage.addCategory_jsp._jspService(addCategory_jsp.java:136)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
com.lce.filter.SetAllCharacterEncodingFilter.doFilter(SetAllCharacterEncodingFilter.java:45)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.


Apache Tomcat/7.0.52