dimanche 18 décembre 2016

View from ModelAndView vs View from ViewResolver

In Spring MVC, when request commes, DispatcherServlet specifies HandlerMapping that indicates which controller should process request. Controller processes request and returns model with specified View.

And I dont get what happens after that, when ViewResolver starts his work. If View is already specified by Controller, why there is a ViewResolver layer? What does it actually do? Shouldn't View been specified before or paraller with Controller? Or maybe Controller should trigger ViewResolver layer?




Aucun commentaire:

Enregistrer un commentaire