Class TitleTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.opensymphony.module.sitemesh.taglib.AbstractTag
-
- com.opensymphony.module.sitemesh.taglib.decorator.TitleTag
-
- All Implemented Interfaces:
RequestConstants
,java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.Tag
public class TitleTag extends AbstractTag
Write the Page<title>
value to out.- Version:
- $Revision: 1.3 $
- Author:
- Joe Walnes
- See Also:
Page.getTitle()
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
defaultTitle
-
Fields inherited from class com.opensymphony.module.sitemesh.taglib.AbstractTag
pageContext, parent
-
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM
-
-
Constructor Summary
Constructors Constructor Description TitleTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
To be implemented by all empty tags.void
setDefault(java.lang.String defaultTitle)
Value to write if no title is found (optional).-
Methods inherited from class com.opensymphony.module.sitemesh.taglib.AbstractTag
doStartTag, getOut, getPage, getParent, release, setPageContext, setParent, trace
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
-
-
-
Method Detail
-
setDefault
public void setDefault(java.lang.String defaultTitle)
Value to write if no title is found (optional).
-
doEndTag
public final int doEndTag()
Description copied from class:AbstractTag
To be implemented by all empty tags.- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Specified by:
doEndTag
in classAbstractTag
-
-