ELException Unable to find a value for.....in object 异常处理
来源:互联网 发布:sql insert 换行符 编辑:程序博客网 时间:2024/05/17 02:30
异常: .. ELExcepiton: unable to find a value for "字段名" in object of class
Jsp页面中:
<c:forEach var="kao" items="${kaoshi}" >
<c:out value="${kao.kaoshiId}" />
......
</c:forEach>
Bean中字段:
kaoshiId
1),原本我在Bean,中按 kao_shi_id 形式命名时,出现上述异常
2),将 kao_shi_id 改为 id, 页面正常显示
3),将 id 改为 kaoshiid ,页面再次出现上述异常
由上述情况可以知 异常 并不是 只 由 字段的命名 所引起,多次尝试后结论如下:
在Bean中 如果字段 命名为 kao_shi_id, 则 set 和get 方法一定也要写为 setKao_shi_id 的形式,
而不能为 setId 的形式, 也就是说要 一致.
- ELException Unable to find a value for.....in object 异常处理
- Unable to find a value for "tStatus" in object of class org.entity.Passport using operator "."
- Unable to find a value for "Sex" in object of class ...错误
- Unable to find a value for "dwmc" in object of class "java.lang.String" using operator "." (null
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- Unable to find a result type for extension [...] in location attribute
- Unable to instantiate default tuplizer/Could not find a getter for orders in class
- 解决 Error:Unable to find encoder for type stored in a Dataset
- 关于javax.validation.ValidationException: Unable to find a default provider异常处理
- 异常处理:Unable to instantiate Action, checkLoginAction, defined for 'checkUser' in namespace '/'Error
- 使用CocoaPods过程中 Unable to find a specification for
- CocoaPods报错:[!] Unable to find a specification for xxxx
- Unable to find a valid document id for entity
- Weblogic 下specify a value for this attribute异常处理
- Could not find a getter for.. in class.. 异常原因
- Unable to create a constant value of type 'Closure type'.异常
- unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder
- Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD fold
- 基础软件开发的日子
- struts2 标签库 介绍
- UML的StereoType的解释
- VC6下安装与配置OpenCV1.0
- 单例模式(Singleton)
- ELException Unable to find a value for.....in object 异常处理
- 多控件组合显示问题
- DCMTK中的dcmpsprt.exe以及dcmprscu.exe的使用方法
- BootLoader
- MBA必读:不能触碰的5大职场高压线
- 关于android ui的优化 view 的绘制速度[转]
- C++强大背后
- 过滤掉系统自带的应用程序
- DCMTK中的findscu.exe以及movescu.exe的使用方法总结