public class XMLViewResolver implements ViewResolver,ApplicationContextAware(Code)
A view resolver which will return a component producer specified in a static
XML file. Will attempt to look up the supplied viewID, after prefixing and
postfixing, as a Spring resource. This is an application scope bean.
author: Antranig Basman (antranig@caret.cam.ac.uk)
setDefaultExtension(String extension) Sets the default extension (including period) that will be suffixed to a
viewId in order to generate the resource path which will be loaded.
public void
setDefaultViews(List defaults) Sets a collection of component producers which will execute for every view.
Set the base directory in which component files will be sought. This must
contain both trailing slash and leading slash. This may designate any
Spring-resolvable resource path (will be handed to application context).
Sets a list of view names which this resolver will attempt to resolve. If
this list is not set, resolver will attempt to resolve any view. If the
list is set and a request is received for a view not listed in it,
getProducers() will return null rather than throwing an exception, enabling
chaining of resolvers.