List<String> list = new ArrayList<String>();
colStr = " "+sb.substring(0, sb.length()-1)+" ";
String valueSql = "select "+colStr+" from t_assets_info ";
setSqlString(valueSql);
rs2 = selectSql();
AssetValueView valueView = new AssetValueView();
request.setAttribute("valueView", valueView);
valueView.resetData();
while(rs2.next()){
bean = new PubDataBean();
for(int i=1;i<=rows;i++){
list.add(rs2.getString(i));
}
bean.addData("assetsvalue", list);
valueView.addDataBean(bean);
}
<%
int valuerows = valueView.getRows();//返回记录条数
for(int i=0;i<valuerows;i++){
if(i%2==0) trtype="trFirst";
else trtype="trSecond";
%>
<tr class="trFirst">
<%
//List list = valueView.getValues(i);
//for(Object value:list){
%>
<td align="center"><%=valueView.getValues(i) %></td>
<% //} %>
<td align="center">
<a href="javascript:sel()" >查看</a>
<a href="javascript:del()" >删除</a>
<a href="javascript:mod()" >修改</a>
</td>
</tr>
<% } %>
00000411 00000415 00000412是编号 1 11 111是区域,界面怎么整也和上面的列名对不上,求帮助,界面代码应该怎么改,还是有别的错误。跪求了--!
java、web、js、javaweb
------解决方案--------------------
<%
List list = valueView.getValues(i);
for(Object value:list){
%>
<td align="center"><%=value %></td>
<% } %>
这块有问题。
把list打印出来看下