{jsp 循环显示list内容}

  1. align="center" width="98%" border="0" cellspacing="1" cellpadding="0" class="resulttable">  
  2.                 <tr>  
  3.                     <th width="18%">卡种类型</th>  
  4.                     <th width="82%">卡种等级</th>  
  5.                 </tr>  
  6.                 <c:if test="${ empty command.cardList}">  
  7.                     <tr><td align="center" colspan="10" class="oddbgc" >无记录</td></tr>  
  8.                 </c:if>                 
  9.                 <c:if test="${ not empty command.cardList}">  
  10.                     <c:forEach  var="bean" items="${ command.cardList}" varStatus="s">  
  11.                         <c:if test="${bean.dataLevel=='1'}">  
  12.                         <tr>  
  13.                             <td align="left" class="<c:choose ><c:when test='${s.index%2 ==0}'>oddbgc</c:when><c:otherwise>evenbgc</c:otherwise></c:choose>">   
  14.                                 <c:out value="${bean.cardName}"/>  
  15.                             </td>  
  16.                             <td align="left" class="<c:choose ><c:when test='${s.index%2 ==0}'>oddbgc</c:when><c:otherwise>evenbgc</c:otherwise></c:choose>">  
  17.                                 <c:forEach  var="childbean" items="${ command.cardList}" varStatus="sr">  
  18.                                     <c:if test="${bean.cardCode eq childbean.parentCardCode}">  
  19.                                         <c:out value="${childbean.cardName}"/>  
  20.                                     </c:if>  
  21.                                 </c:forEach>  
  22.                             </td>  
  23.                         </tr>  
  24.                         </c:if>  
  25.                     </c:forEach>  
  26.                 </c:if>     
  27. </table>    

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值