标题:
对于循环打印的方法
[打印本页]
作者:
朋友
时间:
2009-8-12 07:15
标题:
对于循环打印的方法
我便历数据获得list 数组,怎样循环打印出list中的全部数据
作者:
three
时间:
2009-8-12 09:12
<% List sjlist = (List) request.getAttribute("sjlist"); String sjmc = ""; String sjlx = ""; String str = ""; int j = 44; for (int n1 = 0; n1 < sjlist.size(); n1++) { Shoujiantab sj = (Shoujiantab) sjlist.get(n1); sjmc = sj.getSjmc(); sjlx = sj.getSjlx(); str = "
"; str2 = "
"; %> <%=str%>
<%=sjmc%>
<%=str2%>
<%=sjlx%>
<% } %>
欢迎光临 杰表技术论坛 (http://jatools.com/)
Powered by Discuz! 6.1.0