Struts 2のワークフロー:

983 ワード

Struts 2のワークフロー:
 :       HttpServletRequest  ,(.action JSP  )
 :          Filter   , ActionContextCleanUp FileterDispather 。
 :FilterDispatcher Struts2     ,                 。
 :    FilterDispathcher ,FilterDispatcher  ActionMapper        Action     Request(    URL     .action   )
 :  ActionMapper        Action,FilterDispatcher      ActionProxy,      。
 :ActionProxy  ConfigurationManager(    Struts.xml         ,       Action )
 :ActionProxy    ActionInvocation  , ActionInvocation        Action(                   Interceptor   )
 :Action     ,    result   ,           Interceptor   
 :  ActionInvocation    struts.xml    result,         

   :
①:          Servlet     
②:         ,FilterDispatcher   
③:ActionMapper        Action,FilterDispatcher        ActionProxy
④:ActionProxy  ConfigurationManager                Action 
⑤:ActionProxy    ActionInvocation  
⑥:ActionInvocation  、  Action execute  
⑦:Action    ActionInvocation,  struts.xml