HTTP Status 500 - javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
type Exception report
message javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:561) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:290) javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:243) javax.el.BeanELResolver.property(BeanELResolver.java:377) javax.el.BeanELResolver.getValue(BeanELResolver.java:97) org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:104) org.apache.el.parser.AstValue.getValue(AstValue.java:184) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:950) org.apache.jsp.dept_005fdemo_jsp._jspService(dept_005fdemo_jsp.java:91) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
name属性没有,是不是那里写错了,tomcat运行时不能找不到这个属性。以前也碰见一个类似的错误,在连接数据查表的时候,没有这个列,报错信息类似。希望对你有参考。
谢谢啦,我检查了好几遍代码,没错,就是出现这样的错误,好是无奈哦,在网上也查了好多资料,也没能解决
dept_005fdemo_jsp 这个页面的EL表达式看看,应该是缺少属性
欧克,谢谢啦