在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> <% } %>