freemarker.ext.jsp
Class JspContextModel

java.lang.Object
  |
  +--freemarker.ext.jsp.JspContextModel
All Implemented Interfaces:
TemplateHashModel, TemplateModel

public class JspContextModel
extends java.lang.Object
implements TemplateHashModel


Field Summary
static int ANY_SCOPE
           
static int APPLICATION_SCOPE
           
static int PAGE_SCOPE
           
static int REQUEST_SCOPE
           
static int SESSION_SCOPE
           
 
Constructor Summary
JspContextModel(javax.servlet.jsp.PageContext pageContext, int scope)
           
 
Method Summary
 TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_SCOPE

public static final int ANY_SCOPE

PAGE_SCOPE

public static final int PAGE_SCOPE

REQUEST_SCOPE

public static final int REQUEST_SCOPE

SESSION_SCOPE

public static final int SESSION_SCOPE

APPLICATION_SCOPE

public static final int APPLICATION_SCOPE
Constructor Detail

JspContextModel

public JspContextModel(javax.servlet.jsp.PageContext pageContext,
                       int scope)
Method Detail

get

public TemplateModel get(java.lang.String key)
                  throws TemplateModelException
Description copied from interface: TemplateHashModel
Gets a TemplateModel from the hash.
Specified by:
get in interface TemplateHashModel
Following copied from interface: freemarker.template.TemplateHashModel
Parameters:
key - the name by which the TemplateModel is identified in the template.
Returns:
the TemplateModel referred to by the key, or null if not found.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TemplateModel
Following copied from interface: freemarker.template.TemplateModel
Returns:
true if this object is empty.