📄 60bd6acc1e94001d18d1e07a18d4c5da
字号:
<%@ 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 'index.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">
<script type="text/javascript">
function show(){
var u_name=document.getElementById("u_name").value;
var u_password=document.getElementById("u_password").value;
if(u_name.length==0){
alert("用户名不能为空..");
return ;
}else if(u_password.length==0){
alert("密码不能为空....");
return ;
}
location.href="login?u_name="+u_name+"&u_password="+u_password;
}
</script>
</head>
<body>
Name:<input type="text" id="u_name"><br>
Password:<input id="u_password"><br>
<input type="button" onclick="show()" value="提交">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -