0 votes
in Spring by
What is a View Resolver pattern and explain its significance in Spring MVC?

1 Answer

0 votes
by

It is a J2EE pattern which allows the applications to dynamically choose technology for rendering the data on the browser (View).

Any technology like HTML, JSP, XSLT, JSF, or any other such technology can be used as View.

The View Resolver has the information of different views. The Controller returns the name of the View which is then passed to View Resolver by the DispatcherServlet for selecting the appropriate View technology and then the data is displayed.

The default ViewResolver used in Spring MVC is InternalResourceViewResolver.

Related questions

0 votes
asked Apr 4, 2021 in Spring by Robindeniel
0 votes
asked Apr 4, 2021 in Spring by Robindeniel
...