关于JSP中使用EL表达式遇到的错误Property 'productId' not found on type com.imooc.hello.Product
来源:互联网 发布:软件测试英文工作报告 编辑:程序博客网 时间:2024/06/05 12:35
Property 'productId' not found on type com.imooc.hello.Product
这个错误翻译为:在com.imooc.hello.Product类中找不到 ‘productId’这个属性,
也就是说在我的jsp中使用${requestScope.product.productId}的时候找不到productId这个属性,
但是我反复对照了一下我的dao层的Product类,明明有这个属性。
查了百度,看他们提到了类的 get和set方法,然后想到自己是改过属性的名字的,但我的get和set方法名并没有也跟着改掉,
果然,把get和set方法接着的属性名改掉(比如,在改属性改成productId时,set方法名改为setproductId)。
就能成功使用EL表达需要的属性了。
0 0
- 关于JSP中使用EL表达式遇到的错误Property 'productId' not found on type com.imooc.hello.Product
- JSP页面使用EL表达式出现的问题:javax.el.PropertyNotFoundException: Property 'ID' not found on type java.lang.Str
- 遇到错误javax.el.PropertyNotFoundException: Property 'start' not found on type java.lang.String
- el表达式的一些小问题:javax.el.PropertyNotFoundException: Property 'Title' not found on type
- 关于EL中属性不匹配Property 'Name' not found on type
- 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 '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 java.lang.String 错误解决办法
- javax.el.PropertyNotFoundException: Property 'xxx' not found on type
- javax.el.PropertyNotFoundException: Property 'XXX' not found on type XXX
- javax.el.PropertyNotFoundException: Property 'fyear' not found on type
- javax.el.PropertyNotFoundException: Property 'emailaddress' not found on type ja
- Property 'items' not found on type com.bookstore.domain.ShoppingCart 一个错误
- EL表达式:Property 'id' not readable on type int
- Property 'Name' not found on type com.cn.vo.UserInfo
- jsp中Property 'XXX' not found on type java.lang.String解决方案
- 官网层构造译文
- HDU5933 ArcSoft's Office Rearrangement (模拟) 2016年中国大学生程序设计竞赛(杭州)
- Dom学习之更改一个链接的文本、URL 以及 target
- python 下的 word2vec 学习笔记
- iOS 第14课 TableView <一> 创建以及数据源方法
- 关于JSP中使用EL表达式遇到的错误Property 'productId' not found on type com.imooc.hello.Product
- ubuntu 16.04 apache2 git gitweb
- 中小企业信息化建设分析报告
- C# 记录程序耗时
- 洛谷1371 NOI元丹
- 使用递归的方法获取所有子代元素
- 上海 GDG 为你准备的 Android SDK 的专用更新代理服务器地址
- 《算法》第一章——中缀表达式转前缀和后缀表达式
- 关于WAMPserver中phpadmin连接mysql时出现#1045无法登陆mysql的解决方法