登录页面login.html:
<body>
<form action="LoginCheck" method="post">
用户名:<input type="text" name="username" /><br>
密码:<input type="text" name="password" />
<br><input type="submit" value="登陆" />
</form>
</body>
web.xml文件部署servlet:
<form action="LoginCheck" method="post">
用户名:<input type="text" name="username" /><br>
密码:<input type="text" name="password" />
<br><input type="submit" value="登陆" />
</form>
</body>