📄 login.jsp
字号:
<%@ page language="java" pageEncoding="gb2312" import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title></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">
<style type="text/css">
<!--
.style1 {
font-size: x-large;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">
function check()
{
if(document.form1.name.value=="")
{
alert("用户名不能为空");
return false;
}
}
</script>
</head>
<body background=/ipcount/images/1818.JPG leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="form1.name.focus();">
<br><br><br><br><br><br><br><br><br><br><br><br>
<form name="form1" method="post" action="/ipcount/login.do" onsubmit="return check()">
<p align="center" class="style1"><font color="blue">网站后台流量统计系统</font></p>
<table width="295" border="1" align="center">
<tr>
<td width="75" align="center"><font color="blue" size="4"><b>姓名:</td>
<td width="204" align="center"><input type="text" name="name" maxlength="8"></td>
</tr>
<tr>
<td align="center"><font color="blue" size="4"><b>密码:</td>
<td align="center"><input type="password" name="pwd" maxlength="8"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</div></td>
</tr>
<%if (request.getAttribute("ifLogin") != null) {%>
<tr>
<td align="center" colspan="2">
<p class="style3"><%=(String)request.getAttribute("ifLogin") %> </p>
<p > </p>
</td>
</tr>
<%}%>
</table>
</form>
<script type="text/javascript">
form1.name.focus();
</script>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -