日期:2014-05-17 浏览次数:20659 次
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>
<% } %>