javax.el.PropertyNotFoundException: Property 'reviewcontent' not found on type javabean.YbReview解决方法
来源:互联网 发布:网络摄像头id 编辑:程序博客网 时间:2024/05/18 00:23
一、这是javabean中的YbReview类,以及它的set和get方法
public class YbReview {private Integer userid; private Integer reviewid; private Integer articleid; private String reviewcontent; private YbUser ybuser; private Date reviewdatetime;public Integer getReviewid() {return reviewid;}public void setReviewid(Integer reviewid) {this.reviewid = reviewid;}public Integer getArticleid() {return articleid;}public void setArticleid(Integer articleid) {this.articleid = articleid;}public String getReviewContent() {return reviewcontent;}public void setReviewContent(String reviewcontent) {this.reviewcontent=reviewcontent;}public YbUser getYbuser(){return ybuser;}public void setYbuser(YbUser ybuser) {this.ybuser = ybuser;}public Date getReviewdatetime(){return reviewdatetime;}public void setReviewdatetime(Date reviewdatetime) {this.reviewdatetime = reviewdatetime;}public Integer getUserid() {return userid;}public void setUserid(Integer userid) {this.userid = userid;}}
二、JSP页面的代码如下:
<c:forEach items="${requestScope.list}" var="a"> <tr> <td style="height:26px;border-bottom:1px dotted #cccccc">● ${a.reviewcontent}</td> <td style="height:26px;border-bottom:1px dotted #cccccc" align="left">${a.ybuser.username}</td> <td style="height:26px;border-bottom:1px dotted #cccccc" align="center"><fmt:formatDate pattern="yyyy-MM-dd" value="${a.reviewdatetime}"/> </td> </tr> </c:forEach>
三、于是就一直报这个错误,查了资料给出的解决方案有:(1)保证set和get方法,我检查一遍,自己的都正确,这办法不可行;(2)javabean中的属性第一个字母应该是小写,当然,这个也没有问题;自己捣鼓一会,于是将reviewcontent改为了reviewContent之后,正确了,没有报错了。希望我的方法对大家能有帮助!
阅读全文
0 0
- javax.el.PropertyNotFoundException: Property 'reviewcontent' not found on type javabean.YbReview解决方法
- 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
- EL表達式錯誤:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- el表达式的一些小问题:javax.el.PropertyNotFoundException: Property 'Title' not found on type
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'begin' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'key' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' 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 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException:Property 'statisDate' not found on type java.lang.String
- [java] javax.el.PropertyNotFoundException: Property 'id' not found on type bean.Student
- Caused by: javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- rigibody over 翻译
- (hdu1787)GCD Again(欧拉函数)
- 转自:王垠 编程的智慧
- 在ROS中配置路由器的动态域名?
- 面向对象基础
- javax.el.PropertyNotFoundException: Property 'reviewcontent' not found on type javabean.YbReview解决方法
- Qt5.8&opencv3.2&人脸识别
- 2017多校联合二1003(hdu6047)Maximum Sequence
- 【模板】Kruskal 最小生成树
- Unity调用安卓代码创建按钮
- 跨域访问、同源策略
- alpha、scale、rotate、translate使用xml方式进行配置
- 利用表达式树,计算一个加减乘除(可带括号)的表达式
- 最长递增子序列