examples
Class FooTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by examples.ExampleTagBase
              extended by examples.FooTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag

public class FooTag
extends ExampleTagBase

Example1: the simplest tag Collect attributes and call into some actions

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
FooTag()
           
 
Method Summary
 int doAfterBody()
           
 void doInitBody()
           
 int doStartTag()
          Process start tag
 void setAtt1(String value)
           
 void setAtt2(String value)
           
 void setAtt3(String value)
           
 
Methods inherited from class examples.ExampleTagBase
doEndTag, 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

FooTag

public FooTag()
Method Detail

setAtt1

public void setAtt1(String value)

setAtt2

public void setAtt2(String value)

setAtt3

public void setAtt3(String value)

doStartTag

public int doStartTag()
               throws JspException
Process start tag

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class ExampleTagBase
Returns:
EVAL_BODY_INCLUDE
Throws:
JspException

doInitBody

public void doInitBody()
                throws JspException
Specified by:
doInitBody in interface BodyTag
Overrides:
doInitBody 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 © 2003-2007 Apache Software Foundation. All Rights Reserved.