ArrayList 循环输出的问题
代码如下:
<table width= "613 " height= "99 " border= "1 " >
<tr align= "center " valign= "middle " >
<td height= "30 " colspan= "5 " > </td >
</tr >
<tr align= "center " valign= "middle " >
<td > 姓名 </td >
</tr >
<%
UserManage um = new UserManage();
ArrayList list = um.getStudents();
% >
<%
User user =null;
if(list!=null)
{
for (int i =0;i <list.size();i++){
user = (User)list.get(i);
% >
<tr >
<td > <%=user.getUsername() % > </td >
<%
}
}
% >
</table >
这样是输出N行一列,我想输出N行多列怎么写,比如与N行3类不重复的username
请高手帮忙
------解决方案-------------------- <tr>
fo