Spring MVC framework Introduction

This section provide you the brief introduction of Spring MVC framework and it's lifecycle.


 

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

Spring MVC framework Introduction

This section provide you the brief introduction of Spring MVC framework and it's lifecycle.

Spring MVC is model-view-controller(MVC) based web framework. Spring MVC is the web component of the Spring framework. Spring MVC framework is highly configurable in terms of functionality and logic. Spring MVC framework integration with other framework like Struts, JSF, Tapestry etc is very easy. For rendering view JSP and Servlet is not the only option in Spring MVC framework, you can use other view technologies like Freemarker, Velocity, Excel or Pdf for providing view to the clients.

Spring MVC framework is request driven and designed around a central Servlet. This central Servlet sends requests, for processing, to suitable controller and it also render the render the view to the client with the help of  View Resolver object. The central Servlet in Spring MVC is DispatcherServlet which is fully integrated with Loc container, which give us freedom to use other features of Spring.

Given below the complete life cycle of Spring MVC (step by step):

Spring_mvc

  • First client made a request  in form of http request.

  • This request is caught by the Front controller (i.e. DispatcherServlet).

  • DispatcherServlet consults with suitable Handler Mapping to dispatch the request to suitable Controller.

  • Controller process the request, and returns model and view to the Front controller (i.e. DispatcherServlet).

  • The Front controller afterwards resolves the View with the help of View Resolver object and rendered  back to the client.

Advertisements

Ads
Share on Google+Share on Google+

Spring MVC framework Introduction

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

Advertisements

Ads
 

Discuss: Spring MVC framework Introduction  

Post your Comment


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

Ads

 

Ads