用cforeach显示两层List

xiaoxiao2021-02-28  113

List<List<TScheduAppContent>> scheAppContentLists = new ArrayList<List<TScheduAppContent>>(); List<TScheduAppContent> scheAppContentList = commonService.list(scheParam,TScheduAppContent.class); scheAppContentLists.add(scheAppContentList); return scheAppContentLists;

<c:forEach var="item" items="${scheAppContentLists}" begin="0" step="1" >

    <div class="tab-pane active" > <c:forEach var="appContent" items="${item}" > <table class="table-form">     <tbody>             <tr>            <th class="tc">环节名</th>               </tr>            <tr>        <td class="tc">${appContent.handleName}</td>            </tr>            </tbody>     </table> </c:forEach>     </div>         </c:forEach>
转载请注明原文地址: https://www.6miu.com/read-84473.html

最新回复(0)