?? adminlogin.jsp
字號(hào):
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
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 'adminlogin.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">
-->
<%
String flag=request.getParameter("flag");
if(flag!=null)
{
if(flag.equals("nouser"))
{
%>
<script>
alert("用戶不存在!");
</script>
<%
}
}
%>
<script type="text/javascript">
function check()
{
var name=document.form1.textfield.value;
var pwd =document.form1.textfield2.value;
if(name=="")
{
alert("姓名不能為空!");
document.form1.textfield.focus();
return false;
}
if(pwd=='')
{
alert("密碼不能為空!");
document.form1.textfield2.focus();
return false;
}
return true;
}
</script>
<style type="text/css">
<!--
.STYLE1 {
font-family: "楷體_GB2312";
font-size: 16px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<p> </p>
<form id="form1" name="form1" method="post" action="adminloginservlet" onSubmit="return check()">
<table width="618" border="0" align="center">
<tr>
<td colspan="7"><input type="image" name="imageField" src="image/zte.jpg" /></td>
</tr>
<tr>
<td height="56" colspan="7"> </td>
</tr>
<tr>
<td width="5" align="center"> </td>
<td width="35" height="26" align="right"><input type="image" name="imageField2" src="image/samll.jpg" /> </td>
<td width="101" align="center"> <span class="STYLE1">管理員姓名:</span></td>
<td width="108"><input type="text" name="textfield" size=14/></td>
<td width="27" align="right"><input type="image" name="imageField3" src="image/samll.jpg" /></td>
<td width="98" align="center"><span class="STYLE1">管理員密碼:</span></td>
<td width="214"><input type="password" name="textfield2" size=14/></td>
</tr>
<tr>
<td height="44"> </td>
<td colspan="6"> </td>
</tr>
<tr>
<td height="46" colspan="7" align="center"><input type="submit" name="Submit" value="提 交" />
<input type="reset" name="Submit2" value="重 置" /></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -