当前位置: 代码迷 >> Java Web开发 >> 登录页面输入异常后会在URL地址中持续增加login字段
  详细解决方案

登录页面输入异常后会在URL地址中持续增加login字段

热度:2114   发布时间:2013-02-25 21:19:52.0
登录页面输入错误后会在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" ?
  相关解决方案