`

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>  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics