strut1标签
我的map里保存的是list list里保存的是bean
现在我怎么取bean的属性啊 !!
c标签
<c:forEach items="${map.product}" var="bean">
</c:forEach>
这样能循环但不能取!
------解决方案--------------------
在Action里是这样
List productList = mgr.getShopProduct(pageSize, startRow);
Map map = new HashMap();
map.put("shopProduct", productList);
<c:forEach var="product" items="${productList}">
<tr>
<td bgcolor="#FFFFFF" class="mis_font02" align="center">
<input type="checkbox" name="checkboxArray" value="${product.shopProduct.id}"width="10" />
</td>
<td bgcolor="#FFFFFF" class="mis_font02" height="10" align="center">
${product.shopProduct.category.topCategory.name}
</td>
<td bgcolor="#FFFFFF" class="mis_font02" height="10" align="center">
${product.shopProduct.category.topCategory.type}
</td>
</tr>
</c:forEach>