Struts2 work flow

  1. ActionContextCleanUp Filter : The ActionContextCleanUp filter is optional and it is useful when integration has to be done with other technologies like SiteMash Plugin.
  2. FilterDispatcher : Next the FilterDispatch is called, which int turn uses the ActionMapper to determine weather to invoke an Action. If the action is requires to be invoked, the FilterDispathcer delegates the control to ActionProxy.
     
  3. ActionProxy : The ActionProxy takes the help from Configuration Files manager, which is initialized from the struts.xml. Then the ActionProxy creates an ActionInvocation, which implements the command pattern. The ActionInvocation process invokes the Interceptors (if configured) and then invokes the Action. The ActionInvocation looks for proper result. Then the result is executed, which involves the rendering of JSP or templates.

    Then the Interceptors are executed again in reverse order. Finally the response returns through the filters configured in web.xml file. If the ActionContextCleanUp filter is configured, the FilterDispatcher does not clean the ThreadLocal ActionContext. If the ActionContextCleanUp filter is not present then the FilterDispatcher will cleanup all the ThreadLocals present.

  4. Struts2 work flow

1 comment:

  1. useful information... continue ur good work dude.......................

    ReplyDelete