O'Reilly logo

Spring MVC Beginner’s Guide by Amuthan G

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Working with View Resolver

In the previous chapter, we learned how we can use some of the Spring tags that can only be used in JSP and JSTL views. However, Spring has excellent support for other view technologies as well, such as the XML view, JSON view, and so on. Spring MVC maintains a high level of decoupling between the view and controller. The controller knows nothing about view except the view name. It is the responsibility of the view resolver to map the correct view for the given view name.

In this chapter, we will take a deeper look into views and view resolvers. After finishing this chapter, you will have a clear idea about the following topics:

  • Views and resolving views
  • Static views
  • The multipart view resolver
  • Content negotiation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required