Package | Description |
---|---|
org.apache.velocity.tools.view |
Contains tools and supporting infrastructure for using
those tools in a servlet environment as well as general
use classes to support use of Velocity as (or in) the
view layer of web applications.
|
Modifier and Type | Class and Description |
---|---|
class |
JeeContextConfig
Implements
JeeConfig with only a ServletContext . |
class |
JeeFilterConfig
Implements
JeeConfig with a FilterConfig . |
class |
JeeServletConfig
Implements
JeeConfig with a ServletConfig . |
Modifier and Type | Method and Description |
---|---|
protected void |
VelocityView.configure(JeeConfig config,
ToolboxFactory factory)
Here's the configuration lookup/loading order:
If deprecationSupportMode is true:
Config file optionally specified by
org.apache.velocity.toolbox init-param (servlet or servletContext)
If none, config file optionally at /WEB-INF/toolbox.xml (deprecated conventional location)
If no old toolbox or loadDefaults is true, ConfigurationUtils.getDefaultTools()
ConfigurationUtils.getAutoLoaded() (false)
Config file optionally specified by servletContext org.apache.velocity.tools init-param
Config file optionally at /WEB-INF/tools.xml (new conventional location)
Config file optionally specified by servlet org.apache.velocity.tools init-param
Remember that as these configurations are added on top of each other,
the newer values will always override the older ones. |
protected void |
VelocityView.configure(JeeConfig config,
org.apache.velocity.app.VelocityEngine velocity) |
protected FactoryConfiguration |
VelocityView.getDeprecatedConfig(JeeConfig config)
Deprecated.
|
static VelocityView |
ServletUtils.getVelocityView(JeeConfig config)
Returns the shared
VelocityView for the specified
JeeConfig 's context. |
protected void |
VelocityView.init(JeeConfig config)
Initializes ToolboxFactory, VelocityEngine, and sets default
encoding for processing requests.
|
protected void |
VelocityView.init(JeeConfig config,
org.apache.velocity.app.VelocityEngine velocity)
Initializes the Velocity runtime, first calling
loadConfiguration(JeeConfig) to get a
org.apache.commons.collections.ExtendedProperties
of configuration information
and then calling velocityEngine.init().
|
protected void |
VelocityView.setEncoding(JeeConfig config) |
Constructor and Description |
---|
VelocityView(JeeConfig config) |
Copyright © 2002–2021 Apache Software Foundation. All rights reserved.