View
Learn View (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes View is the V in MVC: the object that renders the model into the response, for example an HTML page, JSON or a PDF. In Spring it is the interface org.springframework.web.servlet.View . Logical view name : a controller usually returns a plain string such as "home" . It does not build the page itself. Who renders : DispatcherServlet asks a ViewResolver to turn the name into a View , then calls view.render(model, request, response) .
More lessons in DispatcherServlet
- What is DispatcherServlet?
- DispatcherServlet Architecture
- DispatcherServlet Initialization
- DispatcherServlet Request Flow
- HandlerMapping
- HandlerAdapter
- HandlerExceptionResolver
- ViewResolver
- Model
- ModelAndView
- Request Processing Pipeline
- Mini Project: Inside the DispatcherServlet: Mappings and the Handler Chain