Reputation: 349
If Dispatcher-Servlet
is not the controller then who is?
Controller is the one who manages the request and by this definition, it should be the controller.
What is the Model and View in this case?
Upvotes: 0
Views: 833
Reputation: 5753
The DispatcherServlet follows the Front Controller design pattern. The C in MVC refers to the page controller which retreives the data from the model (your services) and passes it to the view for rendering.
The purpose of the DispatcherServlet is to determine the page controller that is supposed to handle the request and coordinates the model and the view
Its an advanced servlet which can handle request mapping , locale resolution , view resolution , content negotiation etc
Upvotes: 4