那个登录时通不过验证,怎么不能跳转到login.jsp呢?
小城阿哥 好样的
大赞 ~········
哦哦 谢谢
(回复内容有字数限制?)Action中的属性值为空的时候,Struts2的默认拦截器会报错,但是又找不到input的Result,不能够把错误返回,会报错:No result defined for action and result input。加了上面这句出错的时候就可以跳转到指定页面。
Struts.xml 的users中加入
<result name="input">/users/Users_login.jsp</result>