1. 假如以下面的方式提交
<body>
${SPRING_SECURITY_LAST_EXCEPTION.message}
<form action="j_spring_security_check" method="post">
Account:
<Input name="username" />
<br />
Password:
<input name="password" type="password" />
<br />
<input value="submit" type="submit" />
</form>
</body>
是没有问题的
2. 假如改成下面的样子
<a href="#"> <img src="<%=basePath%>images/login-btn.png" width="103" height="42" style="margin-left: 90px;" onclick="loginSystem();" /> </a>
调用js中的loginSystem()方法,也可以登陆,但是不知是spring的问题还是什么无法回调jsp
最后只能改成
<a href="#"> <img src="<%=basePath%>images/login-btn.png" width="103" height="42" style="margin-left: 90px;" onclick="loginForm.submit()" /> </a>