?? login_conf.jsp
字號(hào):
<%@page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>登陸</title>
</head>
<body>
<center>
<h1>登陸范例——用戶名及密碼固定</h1>
<hr>
<br>
<br>
<%
// 接收請(qǐng)求的內(nèi)容
String name = request.getParameter("uname") ;
String password = request.getParameter("upassword") ;
// System.out.println(name) ;
// System.out.println(password) ;
%>
<%
// 判斷用戶名及密碼
// if("mldn"==name&&"lxh"==password)
if("mldn".equals(name)&&"lxh".equals(password))
{
// 合法用戶
%>
<jsp:forward page="login_success.jsp"/>
<%
}
else
{
// 非法用戶
%>
<jsp:forward page="login_failure.jsp"/>
<%
}
%>
</center>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -