Class AbstractTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.module.sitemesh.taglib.AbstractTag
- All Implemented Interfaces:
RequestConstants,jakarta.servlet.jsp.tagext.BodyTag,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
- Direct Known Subclasses:
BodyTag,DivTag,HeadTag,PropertyTag,TitleTag,UsePageTag
public abstract class AbstractTag
extends jakarta.servlet.jsp.tagext.BodyTagSupport
implements RequestConstants
Convenience implementation of Tag containing generice methods required
by all (or most) taglibs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.servlet.jsp.PageContextprotected jakarta.servlet.jsp.tagext.TagFields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
idFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, PAGE, ROBOTFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intdoEndTag()To be implemented by all empty tags.intReturns SKIP_BODY.protected WritergetOut()Get the outputWriter.protected PagegetPage()Return the Page object from the PAGE scope.jakarta.servlet.jsp.tagext.Tagvoidrelease()voidsetPageContext(jakarta.servlet.jsp.PageContext pageContext) voidsetParent(jakarta.servlet.jsp.tagext.Tag parent) protected static voidLog exception generated by taglib.Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setValue
-
Field Details
-
pageContext
protected jakarta.servlet.jsp.PageContext pageContext -
parent
protected jakarta.servlet.jsp.tagext.Tag parent
-
-
Constructor Details
-
AbstractTag
public AbstractTag()
-
-
Method Details
-
doEndTag
public abstract int doEndTag() throws jakarta.servlet.jsp.JspExceptionTo be implemented by all empty tags.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.BodyTagSupport- Throws:
jakarta.servlet.jsp.JspException
-
doStartTag
public int doStartTag()Returns SKIP_BODY.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.BodyTagSupport
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.BodyTagSupport
-
getParent
public jakarta.servlet.jsp.tagext.Tag getParent()- Specified by:
getParentin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
getParentin classjakarta.servlet.jsp.tagext.TagSupport
-
setParent
public void setParent(jakarta.servlet.jsp.tagext.Tag parent) - Specified by:
setParentin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setParentin classjakarta.servlet.jsp.tagext.TagSupport
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext pageContext) - Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classjakarta.servlet.jsp.tagext.TagSupport
-
getPage
Return the Page object from the PAGE scope. If this is found in REQUEST scope instead, it will be moved into PAGE scope - to handle multi-level includes. -
trace
Log exception generated by taglib. -
getOut
Get the outputWriter. This method should be used in preference topageContext.getOut(), as some charset conversions may need to happen in some servers.- Returns:
- the writer for use in the tag
-