Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is a ViewResolver?

Pragya Keshap answered on August 24, 2021 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • viewresolver in spring boot

  • What is a ViewResolver?

    0

    The ViewResolver provides a mapping between view names and actual views. The View interface addresses the preparation of the request and hands the request over to one of the view technologies.


    ViewResolver Description

    AbstractCachingViewResolver An abstract view resolver which takes care of caching views. Often views need preparation before they can be used, extending this view resolver provides caching of views.

    XmlViewResolver An implementation of ViewResolver that accepts a configuration file written in XML with the same DTD as Spring's XML bean factories. The default configuration file is /WEB-INF/views.xml.

    ResourceBundleViewResolver An implementation of ViewResolver that uses bean definitions in a ResourceBundle, specified by the bundle basename. The bundle is typically defined in a properties file, located in the classpath. The default file name is views.properties.

    UrlBasedViewResolver A simple implementation of the ViewResolver interface that effects the direct resolution of symbolic view names to URLs, without an explicit mapping definition. This is appropriate if your symbolic names match the names of your view resources in a straightforward manner, without the need for arbitrary mappings.

    InternalResourceViewResolver A convenience subclass of UrlBasedViewResolver that supports InternalResourceView (i.e. Servlets and JSPs), and subclasses such as JstlView and TilesView. The view class for all views generated by this resolver can be specified via setViewClass(..). See the Javadocs for the UrlBasedViewResolver class for details.

    VelocityViewResolver / FreeMarkerViewResolver A convenience subclass of UrlBasedViewResolver that supports VelocityView (i.e. Velocity templates) or FreeMarkerView respectively and custom subclasses of them.

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 1/10 Helpfulness 1/10 Language java
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Aug 24 2021
    Wandering Walrus
    0 Answers  Avg Quality 2/10

    0
    Popularity 1/10 Helpfulness 1/10 Language java
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Dec 24 2022
    Deepika Sahu
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.