zoukankan      html  css  js  c++  java
  • jsp页面用struts2标签展示List<Object>类型的数据

    今天遇到一个问题,一个List<Object>类型的数据,是直接从sql查出来的数据,要在前端展示,原来的方法不知道为什么不能展示,后来找了好久,找到了一个靠谱的方法,记录一下

    <s:iterator value="safetyResultIndexAssessEventList" var="comment" status="status">
                            <tr style="height:5px;">
                                <td class="cBody" colspan="1" style="height:5px;">
                                        ${status.count}
                                </td>
                                <td class="cBody" colspan="1" style="height:5px;">
                                    <s:date name="safetyResultIndexAssessEventList[#status.index][1]" format="yyyy-MM-dd HH:mm:ss" />
                                </td>
                                <td class="cBody" colspan="2" style="height:5px;">
                                    <s:property value="safetyResultIndexAssessEventList[#status.index][5]" />
                                </td>
                                <td class="cBody" colspan="2" style="height:5px;">
                                    <s:property value="safetyResultIndexAssessEventList[#status.index][2]" />
                                </td>
                                <td class="cBody" colspan="4" style="height:5px;">
                                    <s:property value="%{getClob(safetyResultIndexAssessEventList[#status.index][4])}" />
                                </td>
                                <td class="cBody" colspan="3" style="height:5px;">
                                    <s:property value="%{getClob(safetyResultIndexAssessEventList[#status.index][6])}" />
                                </td>
                            </tr>
                        </s:iterator>

    原文链接:http://bubuko.com/infodetail-1008395.html

  • 相关阅读:
    tableView
    ios设计模式 设计一个应用程序 笔记
    Touching the Background to close the Keyboard
    fdfd
    fdffafadf
    Declaring the Action Method
    网易公开课IOS笔记 第二课
    getters and setters
    objective c
    Google编码规范 C++ Style Guide, JavaScript Style Guide, ObjectiveC Style Guide, and Python Style Guide
  • 原文地址:https://www.cnblogs.com/anningkang/p/10517261.html
Copyright © 2011-2022 走看看