struts2的xml中如何执行一个action后,同时执行里边的多个action方法?比如,在index.jsp中我写了3个iterator循环,但是我要求的是执行main.action后,同时执行里边的A.ACTION,B.ACTION.C.ACTION。
redirectAction也只能执行一个,很是郁闷。希望高手来指点迷津!!!

解决方案 »

  1.   

    一般情况下很少出现会同时执行多个Action,一般是Action中执行多个方法而已...LZ 怎么会有这种想法?
      

  2.   

    见Struts.xml配置如下:<constant name="struts.enable.SlashesInActionNames" value="true"/> <action name="user/*" class="userAction" method="{1}">
    <result name="add">../result.jsp</result>
    <result name="login">../result.jsp</result>
    <result name="fail">../result.jsp</result>
    <result name="exit">../index.jsp</result>
    <result name="get">/user/userInfo.jsp</result>
    </action>