您的位置:首页 > Web前端 > JavaScript

{jsp 循环显示list内容}

2015-06-24 10:09 417 查看


align="center" width="98%" border="0" cellspacing="1" cellpadding="0" class="resulttable">  

                <tr>  

                    <th width="18%">卡种类型</th>  

                    <th width="82%">卡种等级</th>  

                </tr>  

                <c:if test="${ empty command.cardList}">  

                    <tr><td align="center" colspan="10" class="oddbgc" >无记录</td></tr>  

                </c:if>                 

                <c:if test="${ not empty command.cardList}">  

                    <c:forEach  var="bean" items="${ command.cardList}" varStatus="s">  

                        <c:if test="${bean.dataLevel=='1'}">  

                        <tr>  

                            <td align="left" class="<c:choose ><c:when test='${s.index%2 ==0}'>oddbgc</c:when><c:otherwise>evenbgc</c:otherwise></c:choose>">   

                                <c:out value="${bean.cardName}"/>  

                            </td>  

                            <td align="left" class="<c:choose ><c:when test='${s.index%2 ==0}'>oddbgc</c:when><c:otherwise>evenbgc</c:otherwise></c:choose>">  

                                <c:forEach  var="childbean" items="${ command.cardList}" varStatus="sr">  

                                    <c:if test="${bean.cardCode eq childbean.parentCardCode}">  

                                        <c:out value="${childbean.cardName}"/>  

                                    </c:if>  

                                </c:forEach>  

                            </td>  

                        </tr>  

                        </c:if>  

                    </c:forEach>  

                </c:if>     

</table> 
  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: