📄 index.jsp
字号:
<%@ 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>登录页面</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="style/style.css">
<script type="text/javascript">
function ch(){
if(document.myform.uname.value==""||document.myform.uname.value==null){
alert("请输入登录名!");
return false;
}
if(document.myform.upass.value==""||document.myform.upass.value==null){
alert("请输入密码!");
return false;
}
return true;
}
</script>
</head>
<body class="gray">
<center>
<form name="myform" method="post" action="doLogin.jsp">
<table class="login">
<th> 短信系统登录 </th>
<tr>
<td>
登录名:
<input type="text" name="uname" class="input"/>
</td>
</tr>
<tr>
<td>
密 码:
<input type="password" name="upass" class="input"/>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" value="登录" onclick="ch()" class="btn">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -