View is the most important component of the MVC pattern. The controller returns the model to the front controller along with the logical view name. The front controller resolves to the actual view by using the configured view resolver. Spring MVC provides several view resolvers to support multiple view technologies, such as JSP, Velocity, FreeMarker, JSF, Tiles, Thymeleaf, and so on. You have to configure the view resolver according to the view technology that you use in your web application. Take a look at the following figure to understand more about the view pattern in Spring MVC:
As you can see in the diagram, Spring MVC's Front Controller has several view resolvers according to the different view technologies. But in this chapter, we will use only JSP as the view technology, and so, we will explore only the JSP-related view resolver...