这个错误的解决方法 javax.el.PropertyNotFoundException: Property 'PatchUp' not found on type com.cwkj.qaback.e
2018-02-27 15:20
621 查看
先要确定
你的bean类里面有 PatchUp 这个属性吗?它的get、set方法都有吗?
估计问题就是出在这里了,值得注意一点的是,img_path用hiberante生成bean后,变成了imgPath,所以,你在页面上使用的时候也要用imgPath,而不是img_path,总之,你的页面上使用的属性要和bean类里面的属性一致。
第二或者
搞了半天终于搞清楚问题出在什么地方了,根据 JavaBeans 规范,属性的前两个字母不能是一大一小,或者是一小一大。开头字母要小写才行。
你的bean类里面有 PatchUp 这个属性吗?它的get、set方法都有吗?
估计问题就是出在这里了,值得注意一点的是,img_path用hiberante生成bean后,变成了imgPath,所以,你在页面上使用的时候也要用imgPath,而不是img_path,总之,你的页面上使用的属性要和bean类里面的属性一致。
第二或者
搞了半天终于搞清楚问题出在什么地方了,根据 JavaBeans 规范,属性的前两个字母不能是一大一小,或者是一小一大。开头字母要小写才行。
相关文章推荐
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String 错误解决办法
- javax.el.PropertyNotFoundException: Property 'reviewcontent' not found on type javabean.YbReview解决方法
- 遇到错误javax.el.PropertyNotFoundException: Property 'start' not found on type java.lang.String
- FAQ(56):JSP提取attribute内容出错:javax.el.PropertyNotFoundException: Property 'Code' not found on type com
- EL bug 之 javax.el.PropertyNotFoundException: Property 'Sub_Token' not found on type com.sunmo.stPhone.bean.User
- 解决javax.el.PropertyNotFoundException: Property 'empId' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'StuNum' not found on type com.gzsy.xtw.model.tb_studen
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type com.xxx.xxx
- javax.el.PropertyNotFoundException: Property 'Name' not found on type com.min.test.User
- he.jasper.JasperException: javax.el.PropertyNotFoundException: Property '0' not found on type com.jy
- javax.el.PropertyNotFoundExceptionProperty 'Tid' not found on type com.msz.sims.domain.Teacher
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- jstl报错ye:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- Caused by: javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- javax.el.PropertyNotFoundExceptionProperty "name" not found on type java.lang.String
- Caused by: javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'XXX' not found on type XXX问题
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- JSP页面使用EL表达式出现的问题:javax.el.PropertyNotFoundException: Property 'ID' not found on type java.lang.Str
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String