📄 login.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!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="Content-Type" content="text/html; charset=utf-8">
<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 href="images/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
font-size: 30px;
}
#Layer1 {
position: absolute;
width: 200px;
height: 101px;
z-index: 1;
left: -372px;
top: 28px;
}
#Layer2 {
position: absolute;
width: 384px;
height: 253px;
z-index: 1;
left: 392px;
top: 189px;
}
input {
font-size: 20px;
}
select {
font-size: 20px;
}
.STYLE3 {
font-size: 24px
}
.div_title {
position: absolute;
height: 50px;
width: 498px;
top: 82px;
left: 351px;
}
-->
</style>
</head>
<body bgcolor="#CED3FE" background="images/ubot.jpg">
<div class="div_title">
${error }
<!-- 登陆失败打印错误信息 -->
</div>
<div>
<div id="Layer2">
<form method="post" action="login.do?type=login" id="select">
<table width="385" height="242" border="1">
<td colspan="2">
<div align="center">
<h3 class="STYLE3">
用户登陆
</h3>
</div>
</td>
<tr>
<td width="104">
<span class="STYLE3"> 用户名:</span>
</td>
<td width="265">
<div align="left" class="STYLE3">
<input name="loginname" type="text" id="loginname" size="12"
value="admin" maxlength="16" />
</div>
</td>
</tr>
<tr>
<td>
<span class="STYLE3">密 码:</span>
</td>
<td>
<div align="left" class="STYLE3">
<input name="psw" type="password" id="psw" size="14"
value="admin" maxlength="18" />
</div>
</td>
</tr>
<tr>
<td>
<span class="STYLE3">用户组:</span>
</td>
<td>
<div align="left" class="STYLE3">
<select name="select">
<option value="manager">
管理员
</option>
<option>
普通用户
</option>
</select>
</div>
</td>
</tr>
<tr>
<td height="61">
<input type="submit" value="登 陆" />
</td>
<td>
<input type="reset" value="重 置" />
<input type="button" value="注 册" onclick="window.location.replace('login.do?type=getReg');"/>
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -