{jsp 循环显示list内容}

<table 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>	

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值