com.generationjava.taglib
Class AbstractStringBodyTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.generationjava.taglib.AbstractBodyTag
                    |
                    +--com.generationjava.taglib.AbstractStringBodyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public abstract class AbstractStringBodyTag
extends AbstractBodyTag

Abstract class for the Taglibs. It handles the JSP taglib side of things and calls abstract protected methods to delegate the actual body functionality.

Version:
0.1, 20011028
Author:
bayard@generationjava.com
See Also:
Serialized Form

Field Summary
 
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_BUFFERED, EVAL_BODY_TAG
 
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
 
Constructor Summary
AbstractStringBodyTag()
          Empty constructor.
 
Method Summary
abstract  void actOnBody(java.lang.String str)
          Perform an operation on the passed in String.
 int doEndTag()
          Handles the manipulation of the String tag, evaluating the body of the tag.
 
Methods inherited from class com.generationjava.taglib.AbstractBodyTag
getParam, initAttributes, putParam
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, 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

AbstractStringBodyTag

public AbstractStringBodyTag()
Empty constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Handles the manipulation of the String tag, evaluating the body of the tag. The evaluation is delegated to the actOnBody(String) method and then the initAttributes() method is called.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException

actOnBody

public abstract void actOnBody(java.lang.String str)
                        throws java.io.IOException
Perform an operation on the passed in String.

Parameters:
str - String to be manipulated
java.io.IOException


Copyright © 2002-2003 OSJava. All Rights Reserved.