2013年12月4日星期三

Struts2 configuration file , help , I'm good , I go again !

< - ! spam display , spam deleted - >

/ mail / show_mail.jsp


/ mail / show_mail.jsp

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 ! !
------ For reference only -------------------------------------- -

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> 
  er er, that is so stupid I did not know

------ For reference only ---------------------------------- -----

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> 
       er er, that is so stupid I did not know   
 

In fact, I was just know haha. . .
------ For reference only ---------------------------------------


/ mail / show_mail.jsp


junkmailAction


------ For reference only ---------------------------------- -----

   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

没有评论:

发表评论