Spring Framework

Spring Projects

Spring Project 1

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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: