<c:forEach var="s" items="${sectionList}">
………………
<c:out value="${s.某个属性名}"/> sectionList里面装了很多bean对象, 后面还有很多地方只要用到s.某个bean属性, 就一直说
Property '属性名' not found on type cn.sl.Entities.SectionVO(这是我定义的bean类)加上requestScope也不行。另外,bean里面的属性都是私有的。就算是public也一样访问不到。
………………
<c:out value="${s.某个属性名}"/> sectionList里面装了很多bean对象, 后面还有很多地方只要用到s.某个bean属性, 就一直说
Property '属性名' not found on type cn.sl.Entities.SectionVO(这是我定义的bean类)加上requestScope也不行。另外,bean里面的属性都是私有的。就算是public也一样访问不到。
getAlert()
....;
setAlert(String alert)
....
<c:forEach var="s" items="${sectionList}">
<c:out value="${s.alert}"/> </c:forEach>
把你往 bean 里填充值的代码贴出来
1.检查你sectionList里存的bean对象是否是你想要的那个2.检查bean对象里是否有你要想要的那个属性的get和set 的方法<c:forEach var="s" items="${sectionList}">
<c:out value="${s.某个属性名}"/>
</c:forEach>