为什么在jsp里C:foreach不显示数据,我的标签写的有问题吗?代码如下。 20
<body><%List<ReceiveRs>list=newArrayList();list=(ArrayList)request.getAttribute("list...
<body>
<%List<ReceiveRs> list=new ArrayList();
list=(ArrayList)request.getAttribute("list");%>
<table>
<c:forEach var="bean" items="${list}">
<a>${bean.name}</a>
</c:forEach>
</table>
</body> 展开
<%List<ReceiveRs> list=new ArrayList();
list=(ArrayList)request.getAttribute("list");%>
<table>
<c:forEach var="bean" items="${list}">
<a>${bean.name}</a>
</c:forEach>
</table>
</body> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询