我是靠谱客的博主 要减肥鱼,这篇文章主要介绍在Session中放HashMap在Jsp中用JSTL遍历方法,现在分享给大家,希望可以做个参考。

foodList为HashMap的名称
<c:forEach items="${foodList}" var="food">
				 		<tr height="60" id="${food.value.id}">
					 		<td align="center" width="20%"><input id="fId" type="hidden" value="${food.value.id}"><c:out value="${food.value.foodName}"></c:out></td>
					 		<td align="center" width="20%"><input name="fPrice" type="hidden" value="${food.value.price}"><c:out value="${food.value.price}"></c:out></td>
					 		<td align="center" width="20%">
					 			<input name="fNumber" type="text" value="<c:out value="${food.value.number}"></c:out>" size="3" lang="3" οnblur="alterSorder(this)"/>
					 		</td>
					 		<td align="center" width="20%"><c:out value="${food.value.price}"></c:out></td>
					 		<td align="center" width="20%">
					 			<input type="button" value="删除" class="btn_next" lang="3" οnclick="removeOrder(${food.value.id})" />
				 			</td>
				 		</tr>
				 	</c:forEach>	


最后

以上就是要减肥鱼最近收集整理的关于在Session中放HashMap在Jsp中用JSTL遍历方法的全部内容,更多相关在Session中放HashMap在Jsp中用JSTL遍历方法内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(128)

评论列表共有 0 条评论

立即
投稿
返回
顶部