public class TrinidadBodyTagSupport extends TrinidadTagSupport implements javax.servlet.jsp.tagext.BodyTag
This is the Trinidad version of the JSP BodyTagSupport class.
The main difference is that this class is NOT implementing the
Serializable interface.
A base class for defining tag handlers implementing BodyTag.
The TrinidadBodyTagSupport class implements the BodyTag interface and adds additional convenience methods including getter methods for the bodyContent property and methods to get at the previous out JspWriter.
Many (Trinidad) tag handlers will extend TrinidadBodyTagSupport and only redefine a few methods.
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.jsp.tagext.BodyContent |
bodyContent
The current BodyContent for this BodyTag.
|
id, pageContext| Constructor and Description |
|---|
TrinidadBodyTagSupport()
Default constructor, all subclasses are required to only define a public
constructor with the same signature, and to call the superclass
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
After the body evaluation: do not reevaluate and continue with the page.
|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
void |
doInitBody()
Prepare for evaluation of the body just before the first body evaluation:
no action.
|
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED.
|
javax.servlet.jsp.tagext.BodyContent |
getBodyContent()
Get current bodyContent.
|
javax.servlet.jsp.JspWriter |
getPreviousOut()
Get surrounding out JspWriter.
|
void |
release()
Release state.
|
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
Prepare for evaluation of the body: stash the bodyContent away.
|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected javax.servlet.jsp.tagext.BodyContent bodyContent
public TrinidadBodyTagSupport()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class TrinidadTagSupportjavax.servlet.jsp.JspException - if an error occurred while processing this tagTag.doStartTag()public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class TrinidadTagSupportjavax.servlet.jsp.JspException - if an error occurred while processing this tagTag#doEndTagpublic void setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
setBodyContent in interface javax.servlet.jsp.tagext.BodyTagb - the BodyContentdoAfterBody(),
doInitBody(),
BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)public void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspException - if an error occurred while processing this tagsetBodyContent(javax.servlet.jsp.tagext.BodyContent),
doAfterBody(),
BodyTag.doInitBody()public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class TrinidadTagSupportjavax.servlet.jsp.JspException - if an error occurred while processing this tagdoInitBody(),
IterationTag.doAfterBody()public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class TrinidadTagSupportTag#releasepublic javax.servlet.jsp.tagext.BodyContent getBodyContent()
public javax.servlet.jsp.JspWriter getPreviousOut()
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.