@Deprecated public class VelocityLayoutView extends VelocityToolboxView
The url property should be set to the content template
 for the view, and the layout template location should be specified as
 layoutUrl property. A view can override the configured
 layout template location by setting the appropriate key (the default
 is "layout") in the content template.
 
When the view is rendered, the VelocityContext is first merged with
 the content template (specified by the url property) and
 then merged with the layout template to produce the final output.
 
The layout template can include the screen content through a VelocityContext variable (the default is "screen_content"). At runtime, this variable will contain the rendered content template.
setLayoutUrl(java.lang.String), 
setLayoutKey(java.lang.String), 
setScreenContentKey(java.lang.String)| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_LAYOUT_KEY
Deprecated.  
The default  
layout key. | 
static String | 
DEFAULT_LAYOUT_URL
Deprecated.  
The default  
layout url. | 
static String | 
DEFAULT_SCREEN_CONTENT_KEY
Deprecated.  
The default  
screen content key. | 
SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTEDEFAULT_CONTENT_TYPEloggerPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE| Constructor and Description | 
|---|
VelocityLayoutView()
Deprecated.  
  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkResource(Locale locale)
Deprecated.  
Overrides  
VelocityView.checkTemplate() to additionally check
 that both the layout template and the screen content template can be loaded. | 
protected void | 
doRender(org.apache.velocity.context.Context context,
        HttpServletResponse response)
Deprecated.  
Overrides the normal rendering process in order to pre-process the Context,
 merging it with the screen template into a single value (identified by the
 value of screenContentKey). 
 | 
void | 
setLayoutKey(String layoutKey)
Deprecated.  
Set the context key used to specify an alternate layout to be used instead
 of the default layout. 
 | 
void | 
setLayoutUrl(String layoutUrl)
Deprecated.  
Set the layout template to use. 
 | 
void | 
setScreenContentKey(String screenContentKey)
Deprecated.  
Set the name of the context key that will hold the content of
 the screen within the layout template. 
 | 
createVelocityContext, getToolboxConfigLocation, initTool, setToolboxConfigLocationautodetectVelocityEngine, createVelocityContext, exposeHelpers, exposeHelpers, exposeHelpers, exposeToolAttributes, getEncoding, getTemplate, getTemplate, getVelocityEngine, initApplicationContext, isCacheTemplate, mergeTemplate, renderMergedTemplateModel, setCacheTemplate, setDateToolAttribute, setEncoding, setNumberToolAttribute, setToolAttributes, setVelocityEngineapplyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersafterPropertiesSet, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContextpublic static final String DEFAULT_LAYOUT_URL
layout url.public static final String DEFAULT_LAYOUT_KEY
layout key.public static final String DEFAULT_SCREEN_CONTENT_KEY
screen content key.public void setLayoutUrl(String layoutUrl)
"layout.vm".layoutUrl - the template location (relative to the template
 root directory)public void setLayoutKey(String layoutKey)
#set($layout = "MyLayout.vm" )
 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 templatepublic void setScreenContentKey(String screenContentKey)
Default is "screen_content":
 accessed in VTL as $screen_content.
screenContentKey - the name of the screen content key to usepublic boolean checkResource(Locale locale) throws Exception
VelocityView.checkTemplate() to additionally check
 that both the layout template and the screen content template can be loaded.
 Note that during rendering of the screen content, the layout template
 can be changed which may invalidate any early checking done here.checkResource in class VelocityViewlocale - the desired Locale that we're looking fortrue if the resource exists (or is assumed to exist);
 false if we know that it does not existException - if the resource exists but is invalid (e.g. could not be parsed)protected void doRender(org.apache.velocity.context.Context context,
                        HttpServletResponse response)
                 throws Exception
doRender in class VelocityViewcontext - the Velocity context to use for renderingresponse - servlet response (use this to get the OutputStream or Writer)Exception - if thrown by VelocityAbstractUrlBasedView.setUrl(java.lang.String), 
VelocityView.getTemplate(), 
VelocityView.mergeTemplate(org.apache.velocity.Template, org.apache.velocity.context.Context, javax.servlet.http.HttpServletResponse)