struts2的action之间互相传递动态参数

<action name="changeGoods" class="org.crazyit.auction.action.ChangeGoodsAction">
   <result name="success" type="redirect">viewGoods.action?resID=${resID}</result>

</action>

只需把type设置为redirect即可。

你可能感兴趣的:(javaee,struts2,Class)