Processing Sequence of DispatcherServlet

Processing Sequence of DispatcherServlet

Ads

Tutorials   
Spring 3.2 MVC insert and retrieve blob from the database The hidden tag The errors tag net.roseindia.dao net.roseindia.service net.roseindia.model net.roseindia.controller Spring 3.2 MVC Hibernate Example Spring 3.2 MVC, Upload File in a specific folder Spring 3.2 MVC Form Handling The textarea tag The options tag The option tag The select tag The radiobuttons tag The radiobutton tag The checkboxes tag mvc:default-servlet-handler Static Resources Configuration View Controllers Configuration View resolvers Spring 3.2 MVC Hello World Example Content Negotiation Configuration Interceptors Configuration using Java or XML Customizing the MVC Java config or XML Namespace MVC Java Config or the MVC XML Namespace Servlet container initialization through code Support for ETag The checkbox tag Autogenerated logical view name through RequestToViewNameTranslator Modification in conventional ModelAndView ControllerClassNameHandlerMapping class for handling convention mapping The password tag The input tag The form tag Form Tag library configuration Customizing the Default Error Page @ExceptionHandler & @ResponseStatus annotation Multipart support for file upload in Spring MVC Themes and Theme resolvers in Spring MVC Locales in Spring MVC ContentNegotiatingViewResolver Redirecting and forwarding to views Chaining of Multiple view resolvers View Resolving through ViewResolver interface Requests Intercepting through a HandlerInterceptor Defining handler methods using @RequestMapping annotation Spring 3.2 Asynchronous Request Processing @RequestMapping annotation for mapping requests @Controller annotation for defining new controller
Ads

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.

 

Advertisements

Share on Google+Share on Google+

Processing Sequence of DispatcherServlet

Posted on: December 31, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Processing Sequence of DispatcherServlet  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads