ChainedContext
|
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-onlysupports a read-only toolbox of view toolsauto-searches servlet request attributes, session attributes and
servlet context attribues for objectsThe {@link #internalGet(String key)} method implements the following search order
for objects:servlet request, servlet response, servlet session, servlet contexttoolboxlocal hashtable of objects (traditional use)servlet request attribues, servlet session attribute, servlet context
attributesThe purpose of this class is to make it easy for web designer to work
with Java servlet based web applications. They do not need to be concerned
with the concepts of request, session or application attributes and the
live time of objects in these scopes.Note that the put() method always puts objects into the local hashtable.
|