public interface ViewResolver
View state doesn't change during the running of the application, so implementations are free to cache views.
Implementations are encouraged to support internationalization, i.e. localized view resolution.
|Modifier and Type||Method and Description|
Resolve the given view by name.
View resolveViewName(String viewName, Locale locale) throws Exception
Note: To allow for ViewResolver chaining, a ViewResolver should
null if a view with the given name is not defined in it.
However, this is not required: Some ViewResolvers will always attempt
to build View objects with the given name, unable to return
(rather throwing an exception when View creation failed).
viewName- name of the view to resolve
locale- Locale in which to resolve the view. ViewResolvers that support internationalization should respect this.
nullif not found (optional, to allow for ViewResolver chaining)
Exception- if the view cannot be resolved (typically in case of problems creating an actual View object)