org.springframework.web.servlet.view.UrlBasedViewResolver
that supports FreeMarkerView (i.e. FreeMarker templates) and custom subclasses of it.
The view class for all views generated by this resolver can be specified via the "viewClass" property. See UrlBasedViewResolver's javadoc for details.
Note
When chaining ViewResolvers, a FreeMarkerViewResolver will check for the existence of the specified template resources and only return a non-null View object if the template was actually found.
setViewClass, setPrefix, setSuffix, setRequestContextAttribute, setExposeSpringMacroHelpers, FreeMarkerView
| Access | Constructor and Description |
|---|---|
| public | FreeMarkerViewResolver()
Sets the default |
| public | FreeMarkerViewResolver(String
the prefix that gets prepended to view names when building a URL prefix, String the suffix that gets appended to view names when building a URL suffix)A convenience constructor that allows for specifying |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractUrlBasedView | instantiateView()
Overrides org. Instantiate the specified view class. |
| protected Class |
| FreeMarkerViewResolver | back to summary |
|---|---|
| public FreeMarkerViewResolver() Sets the default | |
| FreeMarkerViewResolver | back to summary |
|---|---|
| public FreeMarkerViewResolver(String prefix, String suffix) A convenience constructor that allows for specifying | |
| instantiateView | back to summary |
|---|---|
| protected AbstractUrlBasedView instantiateView() Overrides org. Doc from org. Instantiate the specified view class. The default implementation uses reflection to instantiate the class.
| |
| requiredViewClass | back to summary |
|---|---|
| protected Class Overrides org. Requires
| |