📄 cartview.jsp
字号:
<%@page contentType="text/html"%><%@page pageEncoding="gb2312"%><%@ page import="java.util.*" %><%@ page import="Adam.*" %><jsp:include page="searchview.jsp" flush="true"/><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>已经选购商品</title> </head> <body> <form action="CustomerServlet" method="post"> <table align="left" width="100%" bgcolor="dddddd" border="1" cellpadding="0" cellspacing="0"> <tr> <td>选中商品</td> <td>商品名称</td> <td>购买数量</td> <td>商品单价</td> </tr> <% if((session.getAttribute("cart"))!=null){ CartBean cartBean=(CartBean)session.getAttribute("cart"); Hashtable cartHash=cartBean.getCartContent(); int size=cartHash.size(); Enumeration cartEnu=cartHash.elements(); while(cartEnu.hasMoreElements()){ CartProduct cartproduct=(CartProduct)cartEnu.nextElement(); %> <tr> <td><input type="checkbox" name="choose" value="<%=cartproduct.getProductId()%>"/></td> <td><%=cartproduct.getProductName()%></td> <td><%=cartproduct.getSelectedCount()%></td> <td><%=cartproduct.getProductPrice()%></td> </tr> <% } } %> </table><br> <input type="hidden" value="delete" name="action"> <input type="submit" value="删除选中商品"/> <a href="CustomerServlet?action=gotocheckout">去结算中心</a> </form> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -