在jsp中显示List中的数据

<%
    ArrayList list = (ArrayList)request.getAttribute("class");
    for(int i = 0; i < list.size(); i++){
        com.zxf.bean.Class clazz = (com.zxf.bean.Class)list.get(i);
%>
<tr>
    <td><%=clazz.getcId()%></td>
    <td><%=clazz.getcName()%></td>
    <td><%=clazz.getcInfo()%></td>
    <td><%=clazz.getcMoney()%></td>
</tr>
<%
    }
%>

 

posted @ 2019-06-23 19:35  DDiamondd  阅读(3532)  评论(0编辑  收藏  举报
TOP