Topic: 怎么用struts标签输出对象数组中的数据

  Print this page

1.怎么用struts标签输出对象数组中的数据 Copy to clipboard
Posted by: javajin
Posted on: 2005-04-27 10:39

如下面的代码:
<%
ArrayList list=new ArrayList(10);
for(int i=0;i<4;i++){
String arr[]=new String[8];
arr[0]="kkkkkkkk";
arr[1]="kkkkkkk";
arr[2]="kkkkkkkk";
arr[3]="kkkkkk";
arr[4]="kkkkkkkk";
list.add(arr);
}
request.setAttribute("lll",list);

%>


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923