📄 login.jsp
字号:
<%@ page import="java.sql.*" contentType="text/html;charset=gb2312" %>
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>login</title></head>
<body bgcolor="#00FFFF">
<%
if (session.getAttribute("Name")==null)
{
%><form action="checklogin.jsp" method="post">
<table width="278" height="159" border="0" cellpadding="0" cellspacing="0" bgcolor="#00FF00">
<tr>
<td height="32" colspan="2" align="center" valign="middle"><font size="4"><strong>用户登陆</strong></font></td>
</tr>
<tr>
<td width="68" height="32" align="center" ><strong>用户名:</strong></td>
<td width="117" align="left"><input type="text" size="14" name="name"/></td>
</tr>
<tr>
<td width="68" height="32" align="center" ><strong>密 码:</strong></td>
<td width="117"align="left"><input type="password" size="14" name="password" /> </td>
</tr>
<tr>
<td height="44" colspan="2" align="center">
<input type="submit" name="Submit" value="确定" />
<input type="reset" name="Reset" value="取消" /></td>
</tr>
</table>
</form>
<%
}
else
{
%>
<br><br><br>
恭喜您:<%=session.getAttribute("Name")%>,登陆成功!
<br>
<br>
<a href="logout.jsp">退出</a>
<%}%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -