Working with views

Spring MVC provides a very flexible view resolution mechanism that is fully decoupled from the other elements of the MVC framework. It does not force you to use a particular view technology; rather, it makes it easier to use your own favorite technology. It even allows you to mix and match multiple technologies at the view tier. Spring MVC provides out-of-the-box support for JPS, XSLT, and Velocity views.

Resolving views

In a typical Spring MVC application, the developer chooses a view technology of his choice and accordingly uses a ViewResolver that resolves views built using that technology.

The component responsible for resolving views in a Spring MVC application is org.springframework.web.servlet.ViewResolver. It maps logical ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.