org.meshcms.taglib
Class PageTitle
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.meshcms.taglib.AbstractTag
org.meshcms.taglib.PageTitle
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, com.opensymphony.module.sitemesh.RequestConstants, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class PageTitle
- extends AbstractTag
Writes the page title. Please note that since this tag is used within the
<head> tag, the field to edit the page title are displayed by
PageBody
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants |
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM |
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 |
Method Summary |
java.lang.String |
getDefault()
|
java.lang.String |
getTitle()
|
void |
setDefault(java.lang.String defaultTitle)
|
void |
writeEditTag()
Writes the contents of the tag when the page is being edited. |
void |
writeTag()
Writes the contents of the tag. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageTitle
public PageTitle()
setDefault
public void setDefault(java.lang.String defaultTitle)
getDefault
public java.lang.String getDefault()
getTitle
public java.lang.String getTitle()
writeTag
public void writeTag()
throws java.io.IOException
- Description copied from class:
AbstractTag
- Writes the contents of the tag. Subclasses will use this method to write
to the page.
- Specified by:
writeTag
in class AbstractTag
- Throws:
java.io.IOException
writeEditTag
public void writeEditTag()
throws java.io.IOException
- Description copied from class:
AbstractTag
- Writes the contents of the tag when the page is being edited. The default
implementation calls
writeTag()
. Subclasses can override it
when they behave differently while editing.
- Overrides:
writeEditTag
in class AbstractTag
- Throws:
java.io.IOException