Property 'Name' not found on type com.cn.vo.UserInfo
来源:互联网 发布:淘宝直通车选词助手 编辑:程序博客网 时间:2024/06/05 07:39
jsp servlet实现查询数据库
root cause
javax.el.PropertyNotFoundException: Property 'Name' not found on type com.cn.vo.UserInfo
javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)
javax.el.BeanELResolver$BeanProperties
出错情况如上述,提示找不到属性,但该属性确实存在,getter和setter方法也都写了。
出错原因:
1.检查一下属性是否拼正确
2.检查s的xh属性在对应得bean的gettter或者setter不匹配
比如你的对应的gettter,setter方法为getXH()或者setXH()
那你的属性就应该定义为xH或者XH
3.属性为小写,方法为大写,比如:
public String name;
public String getName(){
return name;
}
0 0
- Property 'Name' not found on type com.cn.vo.UserInfo
- javax.el.PropertyNotFoundException: Property 'Name' not found on type com.min.test.User
- Property 'name' not found on type java.lang.String
- 异常:Property 'name' not found on type java.lang.String,attribute items does not accept any
- javax.el.PropertyNotFoundException: Property 'IdentiNum' not found on type cn.itcast.ssm.pojo.Recomm
- Property 'XX' not found on type XXXX
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- 关于EL中属性不匹配Property 'Name' not found on type
- jstl报错ye:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- EL表達式錯誤:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String 错误解决办法
- jstl报错ye:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- he.jasper.JasperException: javax.el.PropertyNotFoundException: Property '0' not found on type com.jy
- javax.el.PropertyNotFoundException: Property 'StuNum' not found on type com.gzsy.xtw.model.tb_studen
- wireshark 过滤规则
- WEBAPP开发技巧总结
- java.lang.UnsatisfiedLinkError: Native method not found解决方案
- 光盘启动 (Boot from CDROM) Part 2- SakiProject
- Apache Shiro 使用手册(四)Realm 实现
- Property 'Name' not found on type com.cn.vo.UserInfo
- 数据库设计的范式
- 在Mac OS X中创建RamDisk 性能小提速
- 大数加法
- Training--暂停和继续(运行)一个Activity
- table合并行
- 转载一篇写的不错的java ClassLoader工作机制的文章
- [iOS diary]关于重写setter覆盖property时,出现exc_bad_access
- Android Java汉字转拼音总结