⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 denlu.jsp

📁 一个简单的购物网站,包括购物车的实现
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<html>
<body>
      <table border="0" cellpadding="0" cellspacing="0" width="170" vliagn="top">    	
     <c:if test="${empty sessionScope.user_id}">
        <tr>
          <td>
            <p align="center"><font size="2" color="#000080">用户登录</font></td>
        </tr>
        <form action="checkLogin.jsp" method="post">
        <tr>
          <td><font size="2" color="#000080">用户名:
          <input type="text" name="user_name" size="14"></font></td>
        </tr>
        <tr>
          <td><font size="2" color="#000080">密&nbsp;&nbsp;码:
          <input type="password" name="user_password" size="14"></font></td>
        </tr>
        <tr>
          <td align="center"><font size="2" color="#000080">
          &nbsp;<a href="${pageContext.request.contextPath}ZhuCe.jsp">新注册用户</a>&nbsp;
             <input type="submit" value="登录"></font></td>
        </tr>    
        </html:form>
      </c:if>
      <c:if test="${not empty sessionScope.user_id}">
      	<tr>
          <td align="center"><font size="2" color="#000080">
          欢迎您!${sessionScope.user_name}</font></td>
        </tr>
        <tr>
          <td align="center"><font size="2" color="#000080">
          <a href="${pageContext.request.contextPath}viewBuyCar.jsp">查看购物车</a>&nbsp;&nbsp;
          <a href="${pageContext.request.contextPath}viewOrderForm.jsp">查看订单</a></font></td>
        </tr>
        <tr>
          <td align="center"><font size="2" color="#000080">
          <a href="ZhuCe.jsp">新注册用户</a>&nbsp;
          <a href="exitlogin.jsp">退出登录</a></font></td>
        </tr>
      </c:if>
      </table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -