<c:forEach items="${cart }" var="entry" >
<tr height="60">
<td align="center" width="20%">${entry.key.foodName }</td> //注意有一个key
<td align="center" width="20%">${entry.key.price }</td>
<td align="center" width="20%">
<input type="text" value="${entry.value }" size="3" lang="3" οnblur="alterSorder(this)"/>
</td>
<td align="center" width="20%">${entry.key.price }</td>
<td align="center" width="20%">
<input type="button" value="删除" class="btn_next" lang="3" οnclick="removeSorder(this)" />
</td>
</tr>
</c:forEach>
jsp遍历存在session中的hashmap
最新推荐文章于 2021-08-28 19:45:33 发布