Sunday, June 29, 2008

Previous



Dispatcher Servlet:

Spring's web MVC framework is a request-driven web MVC framework, designed around a servlet that dispatches requests to controllers and offers other functionality facilitating the development of web applications. Spring's DispatcherServlet does that.

The Spring DispatcherServlet has a couple of special beans it uses, in order to be able to process requests and render the appropriate views. These beans are included in the Spring framework and can be configured in the WebApplicationContext, just as any other bean would be configured. Right now, we'll just mention some of them. For most of the beans, defaults are provided so you don't have to worry about configuring them.

• Handler mappings – for matching the URL and send them to a controllers

• Controllers – the actual controller beans

• View resolver – to find the exact location of the view (JSP)

• Theme resolver – capable of resolving themes for the application

• Handlerexceptionresolver – offers functionality to map different exceptions



Next

0 comments: