📄 login.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" errorPage="pages/subPages/Error.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>注册QQ邮箱</title>
<link rel="stylesheet" type="text/css" href="pages/css/Login.css" />
<script type="text/javascript" src="pages/js/Login.js"></script>
</head>
<body onload="document.getElementById('newEmailName').focus();">
<div id="back">
<div id="wrapper">
<div id="head">
<p><img src="pages/images/logo_0_0.gif" width="215" height="60" /></p>
<p id="title"><span>注册邮箱帐号</span><a href="Entry.html">返回</a></p>
</div><!-- the end of id:head -->
<div id="body">
<div id="message">
<%
String message = (String)session.getAttribute("loginMsg");
if(message != null)
{
out.println("<p style = 'border: 1px solid #FADC80; background-color: #FFF9E3; color: #CC0000; padding: 10px 0px 10px 10px; margin-top: 10px;'>");
out.println(message);
out.println("</p>");
}
%>
</div><!-- the end of id:message -->
<form action="<%=path%>/LoginServlet" method="post" id="login" name="login">
<p>
<label>请输入邮箱帐号:</label>
<input type="text" style="ime-mode: disabled;" value="" maxlength="18"
name="newEmailName" id="newEmailName" class="text" />
<span id="suffix">@qq.com</span>
</p>
<p style="padding-left: 135px;">
<span onclick="checkEmailName('<%=path%>/LoginServlet');"
style="color: #3163C0; font-size: 14px; text-decoration: underline; cursor: pointer;">
检测该邮箱帐号是否可用
</span>
</p>
<p>
<label>请输入登录密码:</label>
<input type="password" value="" maxlength="20"
name="password1" id="password1" class="text" />
</p>
<p>
<label>请再次输入密码:</label>
<input type="password" value="" maxlength="20"
name="password2" id="password2" class="text" />
</p>
<p>
<input type="button" value="注 册" id="btn1" onclick="check();" />
</p>
</form>
<hr />
<div id="prompt">
<span>注:邮箱帐号注册成功后将不能更改。</span><br />
<ol>
<li>您的邮箱帐号应该由a~z的英文字母(不区分大小写)开头;</li>
<li>可由英文字母、0~9的数字(但不能使用全数字)、点、减号或下划线组成;</li>
<li>长度为3~18个字符;</li>
<li>不能以点、减号或下划线结尾,不能出现连续两个或两个以上的点、减号或下划线。</li>
</ol>
</div><!-- the end of id:prompt -->
</div><!-- the end of id:body -->
<div id="foot">
<p>©1998 - 2008 Tencent Inc. All Rights Reserved</p>
</div><!-- the end of id:foot -->
</div><!-- the end of id:wrapper -->
</div><!-- the end of id:back -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -