EL表达式经验教训 javax.el.PropertyNotFoundException 出错
2016-07-25 23:17
447 查看
之所以是把他记下来,是因为这个低级错误 害的我找了老半天。
后台传了对象到页面,在页面中循环遍历获得对象某个属性值 如下:
<c:forEach items="${resultMap.localFlowList }" var="flow" varStatus="status">
<span>生效时间:${flow.ValidBeginTime }</span>
</c:forEach>
结果一直报javax.el.PropertyNotFoundException。
最后将 ${flow.ValidBeginTime } 改成小写 ------>这样 ${flow.validBeginTime } 就ok了。
后面再网上百度找了原因,解释是 “因为EL是读取属性的getter方法的,一般按照属性首字母小写来处理”。
相关文章推荐
- el表达式的一些小问题:javax.el.PropertyNotFoundException: Property 'Title' not found on type
- EL表达式问题:javax.el.PropertyNotFoundException: Property 'post' not readable on type java.lang.Boolean
- EL表达式中的 javax.el.PropertyNotFoundException 分析
- JSP页面使用EL表达式出现的问题:javax.el.PropertyNotFoundException: Property 'ID' not found on type java.lang.Str
- El表达式在页面取值的时候报:javax.el.PropertyNotFoundException: Property '' not found on type
- FAQ(56):JSP提取attribute内容出错:javax.el.PropertyNotFoundException: Property 'Code' not found on type com
- javax.el.PropertyNotFoundException: Property 'x...
- 异常:javax.el.PropertyNotFoundException: Property 'id' not found on ..........
- javax.el.PropertyNotFoundException: Property 'fyear' not found on type
- javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'Name' not found on type com.min.test.User
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javaBea 规范 javax.el.PropertyNotFoundException: Property 'xxxxx' not found
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'mainimagepath' 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 错误解决办法
- EL bug 之 javax.el.PropertyNotFoundException: Property 'Sub_Token' not found on type com.sunmo.stPhone.bean.User
- 异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'bookid' not found on type java.lang.String