javax.el.PropertyNotFoundException错误

在J2EE项目的开发过程中,遇到了这个问题,报错如下:

错误原因为在我model里的Person类里定义了一个Name属性,但是读取属性的getter方法的,一般按照属性首字母小写来处理,所以把Name改成name就行了。

时间: 2024-10-12 20:01:27

javax.el.PropertyNotFoundException错误的相关文章

[java] javax.el.PropertyNotFoundException: Property 'id' not found on type bean.Student

问题提出: 在使用MyEclipse开发Java Web时,调用DAO和Java Bean出现了如下错误: 严重: Servlet.service() for servlet [jsp] in context with path [/JDBCbyDao] threw exception [An exception occurred processing JSP page /student.jsp at line 37 34: 35: <c:forEach items="${ student

javax.el.PropertyNotFoundException: Property &#39;name&#39; not found on type java.lang.String

javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193) javax.el.BeanELResolver.property(BeanELResolver.java:267) javax.el.BeanELResolver.getValue(Bean

javax.el.PropertyNotFoundException: Property &#39;id&#39; not found on type java.lang.Integer

javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.Integer    at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:237)    at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:214)    at jav

javax.el.PropertyNotFoundException:

javax.el.PropertyNotFoundException: Property 'ContextPath' not found on type org.apache.catalina.core.ApplicationHttpRequest 在javabeans命名规范中不允许第一个字母大写第二个字母小写,建议方法改写成小写字母开头

javax.el.PropertyNotFoundException: &#39;newsLine&#39; is an unknown bean property...

用了好久的forEach标签,今天帮同事调试程序看到以下异常,第一感觉应该是javabean里面的属性和页面的属性不一致导致,反复检查,确认属性没任何问题,没办法,实在看不出来,只好自己写一个forEach,同一个list,同一个属性,没报任何异常,然后比较发现,报错程序里items="${getTestModule}"在$符号前加了个空格,问题就这么解决了,顿时无语中... [show] javax.el.PropertyNotFoundException: 'newsLine' i

javax.el.PropertyNotFoundException: Property &#39;Email&#39; not found&#183;&#183;&#183;

1.有空格 javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String 在jstl标签属性中的""中间不能有空格,真实死都不知道怎么死的. 原: <c:forEach items="${userlist} " var="user"> 把"${userlist} "中间的空格去掉,改为: <c:fo

Caused by: javax.el.PropertyNotFoundException: Property &#39;product&#39; not found on type java.lang.String

今天在JSP利用EL表达式取值报了 "javax.el.PropertyNotFoundException”,经过debug和打印将问题定位到这段代码: HTML应该是没啥问题,看提示在java.lang.string类型上找不到属性“product”,应该是EL表达式哪里写错了,然后将图中EL表达式重新写了一遍: 然后神奇的不报错了,搞得我一脸蒙蔽,我将每段代码都比对了一下,没发现哪里不对,干就干彻底,替换每段代码测试,结果第一段替换进去就OK了 仔细检查了两段代码: //报错代码 <c

Caused by: javax.el.PropertyNotFoundException: Property [userName] not found on type [java.lang.String]

Caused by: javax.el.PropertyNotFoundException: Property [userName] not found on type [java.lang.String] at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:260) at javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:21

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver错误解决办法

今天不用eclipse.myeclipse等开发工具,纯手写JSP页面(有点作死)时突然出现以前从来没遇到过的问题,报错如下: HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver type Exception report message java.lang.NoClassDefFoundError: javax/el/ELResolver description The server encountered