org.springframework.web.servlet.ViewResolver
that interprets a view name as a bean name in the current application context,
i.e. typically in the XML file of the executing DispatcherServlet
or in a corresponding configuration class.Note
This ViewResolver implements the Ordered interface
in order to allow for flexible participation in ViewResolver chaining.
For example, some special views could be defined via this ViewResolver
(giving it 0 as "order" value), while all remaining views could be resolved by
a UrlBasedViewResolver.
UrlBasedViewResolver
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public View | resolveViewName(String
name of the view to resolve viewName, Locale the Locale in which to resolve the view.
ViewResolvers that support internationalization should respect this. locale)Implements org. Resolve the given view by name. |
| public void |
| order | back to summary |
|---|---|
| private int order | |
| BeanNameViewResolver | back to summary |
|---|---|
| public BeanNameViewResolver() | |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| resolveViewName | back to summary |
|---|---|
| public View resolveViewName(String viewName, Locale locale) throws BeansException Implements org. Doc from org. Resolve the given view by name. Note To allow for ViewResolver chaining, a ViewResolver should
return
| |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Specify the order value for this ViewResolver bean. The default value is | |