使用struts的logic:iterate标签遍历列表时得到显示序号
2017-01-07 16:30
555 查看
<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 %> 两部分。
相关文章推荐
- struts标签bean:cookie,bean:write,logic:page,logic:present,logic:iterate使用实例
- struts标签bean:cookie,bean:write,logic:page,logic:present,logic:iterate使用实例
- struts标签bean:cookie,bean:write,logic:page,logic:present,logic:iterate使用实例
- struts标签 logic:iterate(转)非常详细的使用
- struts1 logic:iterate bean:write标签使用
- struts中logic:iterate标签的使用
- 使用Struts中logic:iterate标签的问题
- logic:iterate标签当遍历的collection为Map时的使用
- Struts标签---logic:Iterate使用方法
- Struts标签---logic:Iterate使用方法
- 使用struts1.x标签<logic:iterate>来输出map,list
- Struts标签<bean:write><logic:iterate></logic:equal>的组合使用小例
- 4-Struts标签的使用--logic(empty, notEmpty, present, notPresent)
- struts标签logic:iterate学习
- struts标签logic:iterate
- struts标签使用举例-logic
- [JAVA天地]struts编程学习:标签-->logic-->iterate
- Struts标签--logic:iterate
- Struts(logic:iterate标签) 迭代 Map(HashMap)集合
- Struts中用logic:iterate标签进行选择性的输出集合