1先把jsp页面粘上来
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div>
<form action="login.do">
用户名<label><input type="text" name="username"></label>
密码<label><input type="text" name="pwd"></label>
<label><input type="submit"/>提交</label>
</form>
</div>
</body>
</html>
2,以为是项目没有重新编译,翻来覆去编译项目还是无法解决。经过多方查找,发现如下情况
3注意form表单的属性设置,只是设置了action,method是默认为 get的,但是过滤器只处理post方法传的数据,搞了半天原来是没有指定方法的过错
4指定方法为method="post"即可解决此问题