後續代碼不工作:JSTL迭代地圖和列表
<c:forEach items="${orderNumByDepartment}" var="map2">
<c:forEach items="${map2.value }" var="foodName2foodNum">
<tr>
<td>${map2.key }</td>
<td>${foodName2foodNum.key }</td>
<td>${foodName2foodNum.value }</td>
</tr>
</c:forEach>
</c:forEach>
orderNumByDepartment is Map<String, List<Map<String, Integer>>> type.
你能告訴我爲什麼我不能得到第二和第三值(foodName2foodNum.key/foodName2foodNum.value)
首先,爲什麼在'}'之前需要空白? – cherouvim 2012-03-13 16:40:24