📄 checkout.jsp
字号:
<%@page contentType="text/html" import="com.ebuy.web.beans.*"%><%@page pageEncoding="gb2312"%><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>结帐</title> </head> <% ShoppingCart cart=(ShoppingCart)request.getSession().getAttribute("cart"); %> <body> <table border="0" width="1000" align="center"> <tr> <td colspan="2"> <jsp:include page="../includes/head.jsp"/> </td> </tr> <tr> <td height="600" valign="top" align="left" width="200"> <jsp:include page="left.html"/> </td> <td width="100%" height="650" valign="top"> <% if(cart!=null && (!cart.getItems().isEmpty())) { %> <jsp:include page="checkpart.jsp"/> <% } else { String msg=null; if(cart==null) { msg="你的购物车不存在:原因如下<br>一:与服务器的会话过期;<br>二:您还没有购买任何商品"; } else { msg="您的购物车已经被清空!"; } request.setAttribute("msg",msg); %> <jsp:include page="../includes/cartinfo.jsp"/> <% } %> </td> </tr> <tr> <td colspan="2"> <jsp:include page="../includes/foot.jsp"/> </td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -