denlu.jsp

来自「一个简单的购物网站,包括购物车的实现」· JSP 代码 · 共 44 行

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