Struts 2 Architecture and Flow

In this tutorial you will learn about the Struts 2 Architecture and Flow and its application with practical example.

Struts 2 Architecture and Flow

The flow and architecture combined many component like controller, ActionProxy, ActionMapper, Configuration Manager , Action Invocation, Inerceptor, Action, Result etc.

Table Of Contents

The below is basic flow of struts2.

image001

 

Let’s understand the flow of struts2 Application.

Step 1: In this step user sends a request for the action.

Step 2: This is the step where controller invokes the Action Invocation.

Step 3: Here Action Invocation invokes each interceptors and action.

Step 4: This is the step where result is generated

Step 5: In this step the result sent back to the Action Invocation.

Step 6: Here Http Response is generated .

Step 7: This is final step in which response is sent to USER.

In this tutorial we have learn about the Struts 2 Architecture and Flow and its application with practical example. I hope you will like this tutorial.