com.ivata.mask.web.tag.util
Class BufferAppendTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.ivata.mask.web.tag.util.BufferAppendTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class BufferAppendTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Appends the JSP contents to a StringBuffer.

Since:
ivata masks 0.6 (2005-04-26)
Version:
$Revision: 1.1 $
Author:
Colin MacLeod colin.macleod@ivata.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
BufferAppendTag()
           
 
Method Summary
 int doAfterBody()
          This method is called after the JSP engine processes the body content of the tag.
 int doEndTag()
          This method is called after the JSP engine finished processing the tag.
 java.lang.String getBufferName()
           Use this attribute to specify a java.lang.StringBuffer instance in the current page context.
 void setBufferName(java.lang.String bufferNameParam)
          Refer to getBufferName().
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
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

BufferAppendTag

public BufferAppendTag()
Method Detail

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException

This method is called after the JSP engine processes the body content of the tag.

Returns:
SKIP_BODY since we only ever want to evaluate this tag once.
Throws:
javax.servlet.jsp.JspException - encapsulates any exception when calling writeTagBodyContent.
See Also:
#writeTagBodyContent( JspWriter out, BodyContent bodyContent )

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

This method is called after the JSP engine finished processing the tag.

Returns:
EVAL_PAGE since we always want to evaluate the page after this tag.
Throws:
javax.servlet.jsp.JspException - encapsulates any exception when calling out.println

getBufferName

public final java.lang.String getBufferName()

Use this attribute to specify a java.lang.StringBuffer instance in the current page context.

Returns:
the current value of mapName.

setBufferName

public void setBufferName(java.lang.String bufferNameParam)
Refer to getBufferName().

Parameters:
bufferNameParam - Refer to getBufferName().


Copyright © 2001-2005 ivata limited. All Rights Reserved.