Modifier and Type | Field and Description |
---|---|
protected JspFragment |
jspBody
Body of the tag.
|
protected JspContext |
jspContext
Context for the upcoming tag invocation.
|
Constructor and Description |
---|
SimpleTagSupport() |
Modifier and Type | Method and Description |
---|---|
void |
doTag()
Default processing of the tag (does nothing).
|
static JspTag |
findAncestorWithClass(JspTag from,
java.lang.Class<?> klass)
Find the instance of a given class type that is closest to a given
instance.
|
JspFragment |
getJspBody()
Get the JspBody value.
|
JspContext |
getJspContext()
Get the JspContext value.
|
JspTag |
getParent()
Get the Parent value.
|
void |
setJspBody(JspFragment newJspBody)
Set the JspBody value.
|
void |
setJspContext(JspContext newJspContext)
Set the JspContext value.
|
void |
setParent(JspTag newParent)
Set the Parent of this tag.
|
protected JspFragment jspBody
protected JspContext jspContext
public void doTag() throws JspException, java.io.IOException
doTag
in interface SimpleTag
JspException
- error while processing the page.SkipPageException
- if the page invoked this tag is no more evaluated.java.io.IOException
- error while writing to the output stream.JspException
- error while processing this tag.SimpleTag.doTag()
public JspTag getParent()
public void setParent(JspTag newParent)
public JspFragment getJspBody()
public void setJspBody(JspFragment newJspBody)
setJspBody
in interface SimpleTag
newJspBody
- The new JspBody value.public JspContext getJspContext()
public void setJspContext(JspContext newJspContext)
setJspContext
in interface SimpleTag
newJspContext
- The new JspContext value.Tag.setPageContext(javax.servlet.jsp.PageContext)
public static final JspTag findAncestorWithClass(JspTag from, java.lang.Class<?> klass)
from
- the instance from where to start lookingklass
- the subclass of JspTag or interface to be matched.