⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 一个简单的java web项目 基于servlet构建
💻 JSP
字号:
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!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">
<%
	String cpath = request.getContextPath();
 %>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>用户登录</title>
		<style type="text/css">*{ margin:0px; padding:0px; font-size:12px; color: #002B55; font-family:"宋体"}body{ background:url(images/newLogin/bg.jpg) repeat-x;}.dd_login{ width:483px; height:369px; background:url(images/newLogin/login_bg.jpg) no-repeat; margin:187px auto 0px auto;}.login_win{  padding:39px 0px 40px 241px;}.dispace{ margin-top:15px;}.dd_input{ width:130px; height:15px;}.dd_img{ padding:25px 0px 18px 75px}</style>
	</head>
	<body> 
		<form name="form" method="post" action="<%=cpath %>/login">
		<input type="hidden" id="flag" name="flag" value="<s:property value="flag"/>" />
			<div class="dd_login">
				<div class="dd_img">
					<img src="<%=cpath %>/images/newLogin/img_5.jpg" width="167" height="28" />
				</div>
				<div class="login_win">
					用户:

					<input type="text" name="loginName" id="username" class="dd_input" />
					<br />
					密码:

					<input type="password" name="password" id="userpassword"
						class="dispace dd_input"/>
					<br />
					<div class="dispace">
						&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
						<input type="image" name="submit" id="submit"
							src="<%=cpath %>/images/newLogin/dl_btn.gif"/>
						&nbsp;
						<input type="image" name="reset" id="reset"
							src="<%=cpath %>/images/newLogin/gb_btn.gif" onclick="window.close()"/>
					</div>

				</div>
			</div>
		</form>
	</body>
</html>
	
	<script type="text/javascript">
		var para=document.getElementById('flag').value;
		if(para==3){
			alert("连续三次登陆不成功将关闭窗口!");
			window.close();
		}
	</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -