org.chwf.taglib.jutil
Class ElementTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.chwf.taglib.base.LifeCycleBodyTagSupport
                    |
                    +--org.chwf.taglib.jutil.ElementTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ElementTag
extends LifeCycleBodyTagSupport

Tag handler for the <element> tag.

Author:
Paul Strack
See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ElementTag()
           
 
Method Summary
 void cleanup()
          Clean up data for tag handler reuse and pooling.
 int doEnd()
          Wraps the (trimmed) tag body with the defined element.
 java.lang.String getName()
          The element name.
 void printParameters()
          Print parameters as [name='value'] pairs.
 void setName(java.lang.String name)
          The element name.
 
Methods inherited from class org.chwf.taglib.base.LifeCycleBodyTagSupport
addAttribute, addParameter, doEndTag, doStart, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ElementTag

public ElementTag()
Method Detail

cleanup

public void cleanup()
Clean up data for tag handler reuse and pooling. Should be overridden in tag handler. Subclasses should always invoke their superclass's cleanup method: super.cleanup()
Overrides:
cleanup in class LifeCycleBodyTagSupport

setName

public void setName(java.lang.String name)
The element name.
Parameters:
name - The element name.

getName

public java.lang.String getName()
The element name.
Returns:
The element name.

doEnd

public int doEnd()
          throws java.io.IOException
Wraps the (trimmed) tag body with the defined element.
Overrides:
doEnd in class LifeCycleBodyTagSupport
Returns:
EVAL_PAGE
Throws:
java.io.IOException - For write errors.

printParameters

public void printParameters()
                     throws java.io.IOException
Print parameters as [name='value'] pairs.
Throws:
java.io.IOException - For write errors.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.