<logic:notEmpty name="sList" scope="request">
    <logic:iterate id="element" indexId="index" name="sList">
        <tr>
            <td width="50"><%= index.intValue() + 1 %>.</td>
            <td><bean:write name="element"/></td>
        </tr>
    </logic:iterate>
</logic:notEmpty>

关键是indexId="index"<%= index.intValue() + 1 %> 两部分。

相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2021-12-23
  • 2021-06-02
  • 2021-12-27
  • 2021-10-25
猜你喜欢
  • 2021-11-21
  • 2022-01-28
  • 2022-12-23
  • 2021-07-11
  • 2021-12-09
相关资源
相似解决方案