myLogin.jsp 登录页面
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<form action="/myLoginServlet" method="post">
<div style="width:300px;height:400px;background: rgba(203, 249, 241, 0.566);">
<div style="width:150px;height:100px;color: rgba(31, 38, 170, 0.778);text-align: center;line-height: 100px;">
<h2>欢迎登录</h2>
</div>
<div style="width:200px;height:200px;margin:auto;text-align: center;">
<div style="height:97px;" display:inline-block>
<input type="text" name="userName" id="userName" placeholder="用户名">
</div>
<div style="height:97px;">
<input type="password" name="pwd" id="pwd" placeholder="密码">
</div>
</div>
<div style="width:300px;height: 100px;text-align: center;margin:auto;line-height:100px;">
<button type="submit" style="margin:auto">登录</button>
<div style="height:50px;line-height: 50px;color: red">
<h6>${requestScope.message}</h6>
</div>
</div>
</div>
</form>
</body>
</html>