<!-- 第一层循环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()的值
时间: 2024-12-25 05:23:08