• +91 9723535972
  • info@interviewmaterial.com

Spring Interview Questions and Answers

Question -
What is a View Resolver pattern and explain its significance in Spring MVC?


Answer -

  • It is a J2EE pattern that 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.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners