📄 login.jsp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>EHBS</title>
</head>
<BODY bgColor=#6597d9>
<%
String name = request.getParameter("name");
String pwd = request.getParameter("pwd");
if (name != null && pwd !=null) {
%>
<jsp:forward page="/loginServlet" />
<%
}
else if(name !=null || pwd !=null){
%>
<p align="center">
You should input both name and pwd!<br><br>
</p>
<%
}
%>
<form name="form1" method="post" action="login.jsp">
<p align="center">User ID
<input type="text" name="name">
</p>
<p align="center">
Password
<input type="password" name="pwd">
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -