?? login.jsp
字號:
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登錄頁面</title>
</head>
<body>
<center>
<table border="0" bgcolor="FFDC75" width="100%" align="center" >
<tr>
<td><h3 align="center">用戶登錄</h3></td>
</tr>
<c:if test="${not empty requestScope.error}">
<script type="text/javascript">
var msg="${requestScope.error}";
alert(msg);
</script>
<c:remove var="error" scope="request"/>
</c:if>
</table>
<form method="post" action="${pageContext.request.contextPath}/login.do">
<select name="choose">
<option value="0">用戶</option>
<option value="1">管理員</option>
</select>
<table border="1" align="center" bordercolor="FFDC75" cellpadding="3" cellspacing="3">
<tr>
<td>用戶名:</td>
<td><input type="text" name="user"/></td>
</tr>
<tr>
<td>密碼:</td>
<td><input type="password" name="password"/></td>
</tr>
</table>
<input type="reset" value="重置"/>
<input type="submit" value="提交"/>
<a href="${pageContext.request.contextPath}/register.jsp">注冊新用戶</a>
</form>
</center></body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -