action cannot be found in the namespace/

如果你在struts.xml中使用了 type="redirectAction" 会出现错误 按照下面的方法就可以解决了。

<!-- 用户 -->
<action name="userAction_*" class="userAction" method="{1}">
<result name="loginSuccess" type="redirectAction" >/campAction_warn</result>
<result name="loginFail">/Login.jsp</result>
</action>
方法:

Window-->Preference-->Validation -->去掉struts2 Validator后的Build列勾确认

 

 


 

 

posted @ 2021-12-15 15:41  塞纳纽斯  阅读(14)  评论(0)    收藏  举报