<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<link href="/ehouse/css/admin/login.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="login">
<h1></h1>
<input type="text" id="name" value="admin"
placeholder="">
<input type="password" id="password" value=""
placeholder="">
<p class="submit">
<input type="submit" id="commit" value="">
</div>
</div>
</body>
</html>
<script type="text/javascript" src="/ehouse/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$("-sharpcommit").click(function(){
var name =$("-sharpname").val();
var password = $("-sharppassword").val();
if(name =="admin"&&password =="ehouse"){
location.href="<%=basePath%>admin/login.html";
}else{
alert("");
}
});
</script>