checkout.jsp

来自「一个基于java工厂模式的 的实现」· JSP 代码 · 共 57 行

JSP
57
字号
<%@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 + =
减小字号Ctrl + -
显示快捷键?