examples
Class LogTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byexamples.ExampleTagBase
              extended byexamples.LogTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag

public class LogTag
extends ExampleTagBase

Log the contents of the body. Could be used to handle errors etc.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class examples.ExampleTagBase
bodyOut, pageContext, parent
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id
 
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
LogTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
 void setToBrowser(String value)
           
 
Methods inherited from class examples.ExampleTagBase
doEndTag, doInitBody, getParent, release, setBodyContent, setPageContext, setParent
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogTag

public LogTag()
Method Detail

setToBrowser

public void setToBrowser(String value)

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class ExampleTagBase
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class ExampleTagBase
Throws:
JspException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.