spring-framework / org.springframework.web.servlet.view / XmlViewResolver / <init>

<init>

XmlViewResolver()

A org.springframework.web.servlet.ViewResolver implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location. The file will typically be located in the WEB-INF directory; the default is "/WEB-INF/views.xml".

This ViewResolver does not support internationalization at the level of its definition resources. Consider ResourceBundleViewResolver if you need to apply different view resources per locale.

Note: This ViewResolver implements the Ordered interface in order to allow for flexible participation in ViewResolver chaining. For example, some special views could be defined via this ViewResolver (giving it 0 as "order" value), while all remaining views could be resolved by a UrlBasedViewResolver.

Author
Juergen Hoeller

Since
18.06.2003

See Also
org.springframework.context.ApplicationContext#getResourceResourceBundleViewResolverUrlBasedViewResolver