struts2的struts.xml
action的type属性redirect和redirect-action的一点区别直接跳转
区别:
<action name="undoBdChannelOperator" class="bdChannelAction"
method="undoBdChannelOperator">
<result name="success" type="redirect">getUndoBdChannelListUI.action?operType=${operType} </result>
</action>
可以正常传递参数,而redirect-action不可以
但是可以写出如下形式
<!-- 撤销对本地栏目的操作 -->
<action name="undoBdChannelOperator" class="bdChannelAction"
method="undoBdChannelOperator">
<result name="success" type="redirect-action">
<param name="actionName">
getUndoBdChannelListUI.action
</param>
<param name="operType">${operType}</param>
</result>
</action>
转载自:http://blog.sina.com.cn/s/blog_4a9eb8290100bqrj.html