jsp页面实现动态的表格
做了个统计的功能 从数据库里面提取出来的数据 我想输出到一个动态的table里面 字段已经固定了 可是table怎样定义才能动态的显示出来结果呢 ?
------解决方案-------------------- <table width= "1128 " height= "80 " border= "1 ">
<tr>
<td width= "62 " height= "35 " align= "center "> <span class= "STYLE1 "> 序号 </span> </td>
<td width= "118 " align= "center " class= "STYLE1 "> 单位名称 </td>
<td width= "161 " align= "center " class= "STYLE1 "> 地址 </td>
<td width= "61 " align= "center " class= "STYLE1 "> 负责人 </td>
<td width= "140 " align= "center " class= "STYLE1 "> 电话 </td>
<td width= "115 " align= "center " class= "STYLE1 "> 经营项目 </td>
<td width= "64 " align= "center " class= "STYLE1 "> 经济性质 </td>
<td width= "66 " align= "center " class= "STYLE1 "> 从业人数 </td>
<td width= "67 " align= "center " class= "STYLE1 "> 体检人数 </td>
<td width= "65 " align= "center " class= "STYLE1 "> 培训人数 </td>
<td width= "90 " align= "center " class= "STYLE1 "> 办证日期 </td>
<td width= "43 " align= "center " class= "STYLE1 "> 备注 </td>
</tr>
<%for(int i=0;i <查询列表.size();i++)
{
Bean test =(Bean)查询列表.get(i);
%>
<tr>
<td height= "37 "> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
< <td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
<td> <%=test.get需要信息()%> </td>
< <td> <%=test.get需要信息()%> </td>
</tr>
<%}%>
</table>