<!-- 第一层循环HoleList --> <c:forEach items="${HoleList }" var="HoleList" varStatus="status"> <tr> <!-- 直接取值 --> <td>${HoleList.LINECUSTOMER}</td> <!-- 第二层循环WANCountBandwidthList --> <c:forEach items="${WANCountBandwidthList }" var="WANCountBandwidthList"> <!-- 变量:WANCountBandwidthList.getLineBandwidth() --> <!-- HoleList根据输入的变量进行取值 --> <td> ${HoleList.get(WANCountBandwidthList.getLineBandwidth())} </td> </c:forEach> <td>${WANCountCustomerList[status.count-1].getWANCountCustomerSum() }</td> </tr> </c:forEach>
${HoleList.get(WANCountBandwidthList.getLineBandwidth())}
使用get获取WANCountBandwidthList.getLineBandwidth()的值
原文地址:http://lbase.blog.51cto.com/993116/1615799