Class EvalTagHandler
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.EvalTagHandler
-
- All Implemented Interfaces:
java.io.Serializable
,IterationTag
,JspTag
,Tag
public class EvalTagHandler extends TagSupport
TheEvalTagHandler
implements the<sling:eval>
custom tag.- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description EvalTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
Called after the body has been processed.void
setFlush(boolean flush)
void
setIgnoreResourceTypeHierarchy(boolean flag)
void
setPageContext(PageContext pageContext)
Set the page context.void
setResource(Resource rsrc)
void
setResourceType(java.lang.String rsrcType)
void
setScript(java.lang.String script)
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
-
-
-
Method Detail
-
doEndTag
public int doEndTag() throws JspException
Called after the body has been processed.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- whether additional evaluations of the body are desired
- Throws:
JspException
- if an error occurs while processing this tag- See Also:
Tag.doEndTag()
-
setPageContext
public void setPageContext(PageContext pageContext)
Description copied from class:TagSupport
Set the page context.- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classTagSupport
- Parameters:
pageContext
- The PageContext.- See Also:
TagSupport.setPageContext(javax.servlet.jsp.PageContext)
-
setFlush
public void setFlush(boolean flush)
-
setResource
public void setResource(Resource rsrc)
-
setScript
public void setScript(java.lang.String script)
-
setResourceType
public void setResourceType(java.lang.String rsrcType)
-
setIgnoreResourceTypeHierarchy
public void setIgnoreResourceTypeHierarchy(boolean flag)
-
-