<package name="global" namespace="">
<default-action-ref name="index"></default-action-ref>
<action name="index">
<result type="redirectAction">
<param name="actionName"></param>
<param name="namespace">/login</param>
</result>
</action>
</package>
run error
There is no result type defined for type 'redirectAction' mapped with name 'success'. Did you mean 'redirectAction'? ; - result - file :/ D :/ apache-tomcat-6.0.37-windows-x86/apache-tomcat-6.0.37/webapps/ShoppingOnNet/WEB-INF/classes/struts.xml: 20 : 34
errors are read to understand .. but how to change ah , the Internet also can not specifically found
------ Solution ----------------- ---------------------------
changed
------ For reference only --- ------------------------------------
obviously you are redirectAction, you are not a direct return jsp, struts that you redirectAction somewhere
//就像这样
<action name="mainMenu" class="logonAction" method="checkPassword">
<result name="input">/common/pages/main/pwReset.jsp</result>
<result name="success" type="redirectAction">mainLogon.act</result>
</action>
<action name="mainLogon" class="logonAction" method="logon">
<result name="init">/common/pages/main/pwReset.jsp</result>
<result name="success">/common/pages/main/layout.jsp</result>
</action>
//这里会有映射到mainLogon,
没有评论:
发表评论