| org.springframework.web.servlet.ViewResolver
All known Subclasses: org.springframework.web.servlet.view.AbstractCachingViewResolver, org.springframework.web.servlet.view.BeanNameViewResolver,
Method Summary | |
View | resolveViewName(String viewName, Locale locale) Resolve the given view by name.
Note: To allow for ViewResolver chaining, a ViewResolver should
return 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 null
(rather throwing an exception when View creation failed).
Parameters: viewName - name of the view to resolve Parameters: locale - Locale in which to resolve the view.ViewResolvers that support internationalization should respect this. |
resolveViewName | View resolveViewName(String viewName, Locale locale) throws Exception(Code) | | Resolve the given view by name.
Note: To allow for ViewResolver chaining, a ViewResolver should
return 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 null
(rather throwing an exception when View creation failed).
Parameters: viewName - name of the view to resolve Parameters: locale - Locale in which to resolve the view.ViewResolvers that support internationalization should respect this. the View object, or null if not found(optional, to allow for ViewResolver chaining) throws: Exception - if the view cannot be resolved(typically in case of problems creating an actual View object) |
|
|