ChainedContext.java | Class | Velocity context implementation specific to the Servlet environment.
It provides the following special features:
- puts the request, response, session, and servlet context objects
into the Velocity context for direct access, and keeps them
read-only
- supports a read-only toolbox of view tools
- auto-searches servlet request attributes, session attributes and
servlet context attribues for objects
The
ChainedContext.internalGet(String key) method implements the following search order
for objects:
- toolbox
- servlet request, servlet response, servlet session, servlet context
- local hashtable of objects (traditional use)
- servlet request attribues, servlet session attribute, servlet context
attributes
The purpose of this class is to make it easy for web designer to work
with Java servlet based web applications. |