org.apache.turbine.services.jsp.tags
Class BodyTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.turbine.services.jsp.tags.BodyTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class BodyTag
- extends javax.servlet.jsp.tagext.TagSupport
Supporting class for the body tag.
Tags that surround the screen content that will replace the
<x:screen section="body" /> tag in a layout template.
An optional attributes parameter can be used to set the value
of the <x:bodyAttributes />, which can also be in the
layout.
Example usage:
<x:body attributes='onLoad="jsfunc()"'>
some html content
</x:body>
- Author:
- John D. McNally
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
attributes
attributes parameter can be used to add screen specific attribute values
to the <body> tag. |
(package private) static java.lang.String |
ATTRIBUTES
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent, values |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doEndTag()
Method called when the end tag is encountered; it does nothing. |
int |
doStartTag()
Method called when the tag is encountered. |
void |
setAttributes(java.lang.String attributes)
The setter for body tag attributes relevant to the screen containing
this tag. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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, registerNatives, toString, wait, wait, wait |
ATTRIBUTES
static final java.lang.String ATTRIBUTES
attributes
private java.lang.String attributes
- attributes parameter can be used to add screen specific attribute values
to the <body> tag.
BodyTag
public BodyTag()
setAttributes
public void setAttributes(java.lang.String attributes)
- The setter for body tag attributes relevant to the screen containing
this tag.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Method called when the tag is encountered. If the layout is in
the body section, the contents between the body tags are executed.
Otherwise they are skipped.
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- EVAL_BODY_INCLUDE, if the section has been set to body
or SKIP_BODY, if this section is not active.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Method called when the end tag is encountered; it does nothing.
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- EVAL_PAGE
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.