读书人

struts1兑现页面表格加序号

发布时间: 2012-11-23 00:03:43 作者: rapoo

struts1实现页面表格加序号

本文转载自:http://blog.csdn.net/hfhwfw/article/details/6274298


红色文字处:
  1. <logic:notEmpty?name="list">??
  2. ?<logic:iterate?id="item"?name="list"?indexId="index">??
  3. ??<tr?onmouseover="this.className='over'"?onmouseout="this.className='out'">??
  4. ??<td>??
  5. ???????<%=Integer.parseInt(index.toString())?+?1%><!--或?${index+1}-->??
  6. ??</td>??
  7. ??<td>??
  8. ???????<bean:write?name="item"?property="productName"/>??
  9. ??</td>??
  10. ??<td>??
  11. ???????<bean:write?name="item"?property="queryTime"/>??
  12. ??</td>??
  13. ??<td?style="word-break:break-all"?mce_style="word-break:break-all">??
  14. ???????<bean:write?name="item"?property="callResult"/>??
  15. ??</td>??
  16. ??<td>??
  17. ??????<bean:write?name="item"?property="ammount"/>??
  18. ??</td>??
  19. ?</tr>??
  20. </logic:iterate>??
  21. </logic:notEmpty> ?

读书人网 >Web前端

热点推荐