above code , I want to return to executing the second action first and then perform the following action, how to get ! Little rookie , seeking guidance ! !
 
 ------ Solution - -------------------------------------------
you can action the forwards between each redirectAction
------ Solution -------------------------------- ------------
the second action is triggered by a label
 
       The second action to try this feature
<action name="deletemaiAction" class="mailAction" method="delete">
<result name="delete" type="redirect">junkmailAction</result>
</action>
------ For reference only ----------------------------------- ----
on the page to send a request to the first action
------ For reference only ------------------- --------------------
the second action is triggered by a label
 
 ------ For reference only ---------------------------------------
second action is triggered by a label
 
       What are the specific needs ?
------ For reference only -------------------------------------- -
upstairs to try. Directly coupled .
------ For reference only ------------------------------------ ---
 3Q3Q Oh ! !
 3Q3Q Oh ! ! ------ For reference only -------------------------------------- -
the second action is triggered by a label
 
             The second action to try this feature
er er, that is so stupid I did not know
<action name="deletemaiAction" class="mailAction" method="delete">
<result name="delete" type="redirect">junkmailAction</result>
</action>
------ For reference only ---------------------------------- -----
the second action is triggered by a label
 
                   The second action to try this feature
er er, that is so stupid I did not know
<action name="deletemaiAction" class="mailAction" method="delete">
<result name="delete" type="redirect">junkmailAction</result>
</action>
In fact, I was just know haha. . .
 
 ------ For reference only ---------------------------------------
------ For reference only ---------------------------------- -----
 3Q3Q Oh ! !      dispatcher = org.apache.struts2.dispatcher.ServletDispatcherResult get / resulttype / message.jsp forwarding
 3Q3Q Oh ! !      dispatcher = org.apache.struts2.dispatcher.ServletDispatcherResult get / resulttype / message.jsp forwarding  redirect = org.apache.struts2.dispatcher.ServletRedirectResult get / resulttype / message.jsp redirect
redirectAction = org.apache.struts2.dispatcher.ServletActionRedirectResult redirect to another Action
 
没有评论:
发表评论