struts1.2列表序号(index)从1开始

  <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>

你可能感兴趣的:(bean,struts,list)