日期:2014-05-17  浏览次数:20782 次

struts2 提交后走过action但页面仍然没用变
如题
使用struts22.3.1.2+spring3.0.5
struts.xml
<package name="defaultTest" namespace="/" extends="struts-default">
<default-action-ref name="index"></default-action-ref>
<action name="index">
<result>pages/login/login.jsp</result>
<!-- <result>index.jsp</result> -->
</action>

<!-- 保存路线 -->
<action name="myway" class="saveMyWayAction">

</action>

<!-- 登陆 -->
<action name="loginMyway" class="loginAction">
<result name="loginSuccess">pages/frame/listWay.jsp</result>
<!-- <result name="list">list.jsp</result> -->
<result name="loginError">pages/login/error.jsp</result>
</action>
</package>
后台日志
14:48:11,140 DEBUG DataSourceUtils:110 - Fetching JDBC Connection from DataSource
14:48:11,140 DEBUG ServletDispatcherResult:68 - Forwarding to location pages/login/login.jsp
14:48:11,140 DEBUG InstantiatingNullHandler:68 - Entering nullPropertyValue [target=[com.opensymphony.xwork2.ActionSupport@bbf380, com.opensymphony.xwork2.DefaultTextProvider@19bb83d], property=struts]
14:48:11,140 DEBUG InstantiatingNullHandler:68 - Entering nullPropertyValue [target=[com.opensymphony.xwork2.ActionSupport@bbf380, com.opensymphony.xwork2.DefaultTextProvider@19bb83d], property=org]
14:48:11,140 DEBUG DataSourceUtils:332 - Returning JDBC Connection to DataSource
14:48:11,140 DEBUG I18nInterceptor:68 - after Locale=zh_CN
14:48:11,140 DEBUG I18nInterceptor:68 - intercept } 
14:48:11,140 DEBUG ServletDispatcherResult:68 - Forwarding to location pages/login/error.jsp
14:48:11,140 DEBUG InstantiatingNullHandler:68 - Entering nullPropertyValue [target=[com.MyWay.action.login.LoginAction@586b46, com.opensymphony.xwork2.DefaultTextProvider@19bb83d], property=struts]
14:48:11,140 DEBUG InstantiatingNullHandler:68 - Entering nullPropertyValue [target=[com.MyWay.action.login.LoginAction@586b46, com.opensymphony.xwork2.DefaultTextProvider@19bb83d], property=org]
14:48:11,140 DEBUG I18nInterceptor:68 - after Locale=zh_CN
14:48:11,140 DEBUG I18nInterceptor:68 - intercept } 

------解决方案--------------------
action代码呢?
------解决方案--------------------
没有return?
------解决方案--------------------
楼主是异步提交的吗?如果是的话,