Dispatcher Servlet,HandlerMapping & Controller

Dispatcher Servlet This is the servlet in a Spring MVC application defined in web.xml using <servlet> element. It is integrated with rest of the beans and Spring container through the configuration xml named as <servlet-name>-servlet.xml. DispatcherServlet receives all requests from clients, executes the common part of it, delegates specific implementation…

Continue reading

Spring MVC-View Resolvers

In Spring MVC, view resolvers enable you to render models in a browser without tying you to a specific view technology like JSP, Velocity, XML…etc. There are two interfaces that are important to the way Spring handles views are ViewResolverand View. The ViewResolver provides a mapping between view names and actual views. The…

Continue reading

Spring MVC Flow

Spring MVC is a Model-View-Controller(MVC) web framework build on notion of a central Front Controller servlet (DispatherServlet) which is responsible for dispatching each request to appropriate handlers, resolving views and finally returning the response. It provides solution to layer an application by separating three concerns business, presentation and control flow.…

Continue reading