日期:2014-05-17  浏览次数:20763 次

登录页面输入错误后会在URL地址中持续增加login字段
登录页面可以使用,输入正确可以正常登录,但是输入错误url会自动增加login字段,如:http://localhost:8080/myproject/login/login.action 登录页面action的struts是按下面这样配的
<action name="login" class="......" method="login">
  <result name="success" type="redirect">/index.action</result>
  <result name="error">/index.jsp</result>
</action>
页面中有验证码,要向后台请求rand.action,不知道对这个问题有没有影响。

------解决方案--------------------
这个跟你输入错不错误没关吧。你是不是用了namespace="/login" ?