No result defined for action*.action.*Action and result success
2015-04-08 20:58
197 查看
引起该问题的原因是所写的action名占用了struts的保留字(如:regedit,login),将action改名就可以
补充:
今天又遇到了一种情况提示该信息:
在struts的配置文件中添加了abstract="true"这个属性后,也会报这个错误
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<!-- Struts2的action由Spring来负责进行实例化 -->
<constant name="struts.objectFactory" value="spring"></constant>
<package name="default" extends="struts-default" namespace="/">
<action name="reg" class="regeditAction" method="reg">
<result name="regAfter">/jsp/regedit.jsp</result>
</action>
<action name="logg" class="loginAction" method="login">
<result name="loginAfter">/jsp/login.jsp</result>
</action>
</package>
</struts>
补充:
今天又遇到了一种情况提示该信息:
在struts的配置文件中添加了abstract="true"这个属性后,也会报这个错误
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<!-- Struts2的action由Spring来负责进行实例化 -->
<constant name="struts.objectFactory" value="spring"></constant>
<package name="default" extends="struts-default" namespace="/">
<action name="reg" class="regeditAction" method="reg">
<result name="regAfter">/jsp/regedit.jsp</result>
</action>
<action name="logg" class="loginAction" method="login">
<result name="loginAfter">/jsp/login.jsp</result>
</action>
</package>
</struts>
相关文章推荐
- HTTP Status 404 - No result defined for action XXXX and result success 处理
- No result defined for action and result success 的问题
- HTTP Status 404 - No result defined for action com.ssk.action.Register and result success
- No result defined for action com.tarena.action.HelloAction and result success
- No result defined for action com.ys.action.ModuleAction and result success
- action莫名报错 No result defined for action com.action.Logout and result success
- struts2 关于 No result defined for action and result success 的问题
- No result defined for action com.weiyi.bbs.action.LoginAction and result success总结
- No result defined for action com.standard.action.LoginAction and result success
- No result defined for action cxd.action.QueryAction and result success
- No result defined for Action and result success
- The requested resource (No result defined for action org.action.LoginAction and result success) is
- No result defined for action *** and result success
- 错误日志No result defined for action com.action.LoginAction and result success.
- No result defined for action org.action.StrutsAction and result success之解决
- No result defined for action action.LoginAction and result success 解决
- No result defined for action com.stickon.action.loginAction and result success
- No result defined for action org.action.StrutsAction and result success之解决
- No result defined for Action and result success
- Struts2关于No result defined for action action.UserAction and result register_success