Processing Sequence of DispatcherServlet

Ads
 

Processing Sequence of DispatcherServlet

Processing Sequence of DispatcherServlet

Processing Sequence of DispatcherServlet

Processing Sequence of DispatcherServlet

In this section, you will get to know about the processing sequence of DispatcherServlet.

After the configuring DispatcherServlet, when the request comes, the DispatcherServlet caught the request and starts processing the request in the following order :

  • First the WebApplicationContext is searched and it is bound in the request as an attribute.

  • The locale resolver and the theme resolver is bound to the request to determine the locale and theme during request processing.

  • The DispatcherServlet searches suitable handler and consult with it to call the appropriate Controller. The Controller process the request using appropriate service method and set model data and returns the view name to the DispatcherServlet.

  • The Front controller afterwards resolves the view with the help of View Resolver and passes the model data to the view, to finally render the view on the browser.

 

Ads

Ads