|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.jsp.FreeMarkerTag
public class FreeMarkerTag
Simple implementation of JSP tag to allow use of FM-Classic templates in JSP. Inspired by similar class in Velocity template engine developed by Geir Magnusson Jr.
Field Summary |
---|
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
FreeMarkerTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Process body (re)evaluation. |
int |
doEndTag()
Process the end tag for this instance. |
void |
doInitBody()
Prepare for evaluation of the body. |
int |
doStartTag()
Process the start tag for this instance. |
boolean |
getCaching()
Retrieve whether we're caching template content from the body, or whether we recompile the template each time. |
javax.servlet.jsp.tagext.Tag |
getParent()
Get the parent (closest enclosing tag handler) for this tag handler. |
void |
release()
Called on a Tag handler to release any state information. |
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
Set the bodyContent property. |
void |
setCaching(boolean caching)
Sets whether we cache the template content from the body, or whether we recompile the template each time. |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the current page context. |
void |
setParent(javax.servlet.jsp.tagext.Tag parent)
Set the parent (closest enclosing tag handler) of this tag handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FreeMarkerTag()
Method Detail |
---|
public boolean getCaching()
true
if we're caching the template, otherwise
false
public void setCaching(boolean caching)
caching
- true
if we want to cache template content,
otherwise false
public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
public void setParent(javax.servlet.jsp.tagext.Tag parent)
Set the parent (closest enclosing tag handler) of this tag handler. Invoked by the JSP page implementation object prior to doStartTag().
This value is not reset by doEndTag()
and must be
explicitly reset by a page implementation.
setParent
in interface javax.servlet.jsp.tagext.Tag
parent
- The parent tag, or null
.public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
public void setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
setBodyContent
in interface javax.servlet.jsp.tagext.BodyTag
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the current page context. This method is invoked by the JSP page
implementation object prior to doStartTag()
.
This value is not reset by doEndTag()
and must be
explicitly reset by a page implementation if it changes between calls to
doStartTag()
.
setPageContext
in interface javax.servlet.jsp.tagext.Tag
public void doInitBody()
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
public int doEndTag() throws javax.servlet.jsp.JspException
Process the end tag for this instance. This method is invoked by the JSP page implementation object on all Tag handlers.
This method will be called after returning from doStartTag()
.
The body of the action may or not have been evaluated, depending on the
return value of doStartTag()
.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |