struts1兑现页面表格加序号
struts1实现页面表格加序号本文转载自:http://blog.csdn.net/hfhwfw/article/details/6274298红色文字处:
struts1实现页面表格加序号
本文转载自:http://blog.csdn.net/hfhwfw/article/details/6274298
红色文字处:
- <logic:notEmpty?name="list">??
- ?<logic:iterate?id="item"?name="list"?indexId="index">??
- ??<tr?onmouseover="this.className='over'"?onmouseout="this.className='out'">??
- ??<td>??
- ???????<%=Integer.parseInt(index.toString())?+?1%><!--或?${index+1}-->??
- ??</td>??
- ??<td>??
- ???????<bean:write?name="item"?property="productName"/>??
- ??</td>??
- ??<td>??
- ???????<bean:write?name="item"?property="queryTime"/>??
- ??</td>??
- ??<td?style="word-break:break-all"?mce_style="word-break:break-all">??
- ???????<bean:write?name="item"?property="callResult"/>??
- ??</td>??
- ??<td>??
- ??????<bean:write?name="item"?property="ammount"/>??
- ??</td>??
- ?</tr>??
- </logic:iterate>??
- </logic:notEmpty> ?