public class EmbeddedVelocityViewResolver extends VelocityViewResolver
VelocityViewResolver that uses
EmbeddedVelocityToolboxView when the toolboxConfigLocation is set.| 构造器和说明 |
|---|
EmbeddedVelocityViewResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
initApplicationContext() |
void |
setToolboxConfigLocation(String toolboxConfigLocation)
Set a Velocity Toolbox config location, for example "/WEB-INF/toolbox.xml",
to automatically load a Velocity Tools toolbox definition file and expose
all defined tools in the specified scopes.
|
buildView, requiredViewClass, setDateToolAttribute, setNumberToolAttributesetAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersapplyLifecycleMethods, canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, instantiateView, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNamesclearCache, getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected void initApplicationContext()
public void setToolboxConfigLocation(String toolboxConfigLocation)
VelocityViewResolverThe specified location string needs to refer to a ServletContext resource, as expected by ServletToolboxManager which is part of the view package of Velocity Tools.
Note: Specifying a toolbox config location will lead to VelocityToolboxView instances being created.
setToolboxConfigLocation 在类中 VelocityViewResolvertoolboxConfigLocation - toolboxConfigLocationServletToolboxManager.getInstance(javax.servlet.ServletContext, java.lang.String),
VelocityToolboxView.setToolboxConfigLocation(java.lang.String)Copyright © 2022. All rights reserved.