@Deprecated public class VelocityLayoutViewResolver extends VelocityViewResolver
See VelocityViewResolver's javadoc for general usage info.
VelocityViewResolver,
VelocityLayoutView,
setLayoutUrl(java.lang.String),
setLayoutKey(java.lang.String),
setScreenContentKey(java.lang.String)| 构造器和说明 |
|---|
VelocityLayoutViewResolver()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.web.servlet.view.AbstractUrlBasedView |
buildView(String viewName)
已过时。
|
protected Class<?> |
requiredViewClass()
已过时。
Requires VelocityLayoutView.
|
void |
setLayoutKey(String layoutKey)
已过时。
Set the context key used to specify an alternate layout to be used instead
of the default layout.
|
void |
setLayoutUrl(String layoutUrl)
已过时。
Set the layout template to use.
|
void |
setScreenContentKey(String screenContentKey)
已过时。
Set the name of the context key that will hold the content of
the screen within the layout template.
|
initApplicationContext, setDateToolAttribute, setNumberToolAttribute, setToolboxConfigLocationsetAllowRequestOverride, 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 Class<?> requiredViewClass()
requiredViewClass 在类中 VelocityViewResolverVelocityLayoutViewpublic void setLayoutUrl(String layoutUrl)
layoutUrl - the template location (relative to the template
root directory)VelocityLayoutView.setLayoutUrl(java.lang.String)public void setLayoutKey(String layoutKey)
#set($layout = "MyLayout.vm" )
The default key is "layout", as illustrated above.
layoutKey - the name of the key you wish to use in your
screen content templates to override the layout templateVelocityLayoutView.setLayoutKey(java.lang.String)public void setScreenContentKey(String screenContentKey)
Default is "screen_content": accessed in VTL as
$screen_content.
screenContentKey - the name of the screen content key to useVelocityLayoutView.setScreenContentKey(java.lang.String)protected org.springframework.web.servlet.view.AbstractUrlBasedView buildView(String viewName) throws Exception
buildView 在类中 VelocityViewResolverExceptionCopyright © 2022. All rights reserved.