?? login.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String message=request.getParameter("message");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'login.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form method="post" name="login" action="<%=path+"/user/login" %>">
<p>
</p>
<table width="300" border="0" align="center">
<tbody>
<tr align="center">
<td>
<font color=green size=5>用戶登錄</font>
</td>
</tr>
<tr>
<td>
<table width="300" border="0" align="center" height="73">
<tbody>
<tr>
<td>
用戶名稱:
</td>
<td>
<input type="text" name="username">
</td>
</tr>
<tr>
<td>
用戶密碼:
</td>
<td>
<input type="password" name="userpassword" size="22">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr align="center">
<td>
<input type="submit" value="登錄" name="submit">
<input type="reset" value="重置" name="reset">
</td>
</tr>
<tr>
<td valign="top"><div align="center">
<%
if(message!=null)
{
%>
<font color="red">登錄失敗,請重新登錄</font></div>
<%} %>
</td>
</tr>
</tbody>
</table>
<p>
</p>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -