jstl foreach标签问题
<%
BagService bagService = (BagService)BeanFactory.beans.get("bagService");//初始化实体
List<Bag> bags = bagService.findAllBag();//实体的方法
%>
<table border="4">
<c:forEach items="${bags}" var="item" varStatus="c">
<tr>
<td><c:out value="${item.bagCode}"></c:out></td>
<td><c:out value="${item.bagName}"></c:out></td>
</tr>
</table>
为什么输出不了bagCode、bagName两个字段的值呢???