org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property “D_time” not found on com.zaj.train.model.TrainBean
2013-10-12 10:04
519 查看
在使用struts2完成火车票查询功能时,在jsp页面获取时总是有异常:
但是检查了TrainBean以后,确认里边确实有D_time这个属性,经过查资料,发现有一个JavaBean规范,就是首字母不能为大写字母,可能是struts2要求的吧,原来不是用框架时并没有遇到过这种情况,看来规范很重要啊,别管是哪的规范了,以后bean中首字母都要小写,别输在“细节”了啊!
org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property “D_time” not found on com.zaj.train.model.TrainBean
但是检查了TrainBean以后,确认里边确实有D_time这个属性,经过查资料,发现有一个JavaBean规范,就是首字母不能为大写字母,可能是struts2要求的吧,原来不是用框架时并没有遇到过这种情况,看来规范很重要啊,别管是哪的规范了,以后bean中首字母都要小写,别输在“细节”了啊!
相关文章推荐
- org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property 'minnormalrange' not
- javax.el.PropertyNotFoundException: Property 'StuNum' not found on type com.gzsy.xtw.model.tb_studen
- EL bug 之 javax.el.PropertyNotFoundException: Property 'Sub_Token' not found on type com.sunmo.stPhone.bean.User
- 异常:org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Prope 'Latitude' not found
- he.jasper.JasperException: javax.el.PropertyNotFoundException: Property '0' not found on type com.jy
- javax.el.PropertyNotFoundException: Property 'Name' not found on type com.min.test.User
- 这个错误的解决方法 javax.el.PropertyNotFoundException: Property 'PatchUp' not found on type com.cwkj.qaback.e
- javax.el.PropertyNotFoundException: Property 'eyeSuggest' not readable on type org.smt.entity.Health
- javax.el.PropertyNotFoundException: Property 'reviewcontent' not found on type javabean.YbReview解决方法
- javax.el.PropertyNotFoundExceptionProperty 'Tid' not found on type com.msz.sims.domain.Teacher
- 异常:org.apache.jasper.el.JspPropertyNotFoundException
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type com.xxx.xxx
- FAQ(56):JSP提取attribute内容出错:javax.el.PropertyNotFoundException: Property 'Code' not found on type com
- org.apache.jasper.JasperException: javax.el.ELException: Error reading 'name' on type com.ht.domain.
- [java] javax.el.PropertyNotFoundException: Property 'id' not found on type bean.Student
- javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- 异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
- 遇到错误javax.el.PropertyNotFoundException: Property 'start' not found on type java.lang.String
- 解决javax.el.PropertyNotFoundException: Property 'empId' not found on type java.lang.String
- [Exception JavaWeb 1] - javax.el.PropertyNotFoundException: Property 'id' not found on ..........