📄 cart.jsp
字号:
<%@page contentType="text/html;charset=GBK"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %><html><head><title>我的购物车</title></head><body background="/ShoppingCar/imager/2.jpg"><center><h1>我的购物车</h1><hr><form action="<c:url value="/shopping/cart.do"/>" method="post"><table border="1" width="%80"><tr> <th>选择</th> <th>商品名称</th> <th>单价</th> <th>数量</th> <th>合计</th></tr><c:forEach items="${car.items}" var="item" varStatus="loop"><tr> <td align="center"><input type="checkbox" name="${item.value.product.pname}" /></td> <td align="center">${item.value.product.pname }</td> <td align="center">${item.value.product.price }</td> <td align="center"><input type="text" name="${item.value.product.id}" value="${item.value.amount}"/></td> <td align="center">${item.value.cost}</td></tr></c:forEach><tr> <td colspan="5">您购物车中所有商品的总金额为 : ${car.cost }</td></tr></table><br><input type="submit" name="method" value="<bean:message key="submit.modify"/>"/><input type="submit" name="method" value="<bean:message key="submit.delete" />"/><input type="submit" name="method" value="<bean:message key="submit.clear" />"/><input type="submit" name="method" value="<bean:message key="submit.over" />" ><input type="submit" name="method" value="<bean:message key="submit.buy" />" ></form></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -