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
Constructor Summary |
JspContextModel(javax.servlet.jsp.PageContext pageContext,
int scope)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JspContextModel
public JspContextModel(javax.servlet.jsp.PageContext pageContext,
int scope)
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.