Spring Framework

Spring Projects

Spring Project 1

adplus-dvertising
XmlViewResolver in Spring MVC
Previous Home Next

This view resolver provide the facility to uses bean definitions in an XML file which are locate the path. the default location of file is "/WEB-INF/page.xml".

Syntax:

public class XmlViewResolver
extends AbstractCachingViewResolver
implements Ordered, DisposableBean

This view resolver provide following method:

setOrder:

public void setOrder(int order)

getOrder:

public int getOrder()

setLocation:

public void setLocation(Resource location)

initApplicationContext:

protected void initApplicationContext()
throws BeansException

getCacheKey:

protected Object getCacheKey(String viewName,
Locale locale)

loadView:

protected View loadView(String viewName,
Locale locale)throws BeansException

initFactory:

protected BeanFactory initFactory()
throws BeansException

destroy:

public void destroy()throws BeansException

Example of XmlViewResolver in Spring MVC

Previous Home Next