examples
Class FooTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
examples.ExampleTagBase
examples.FooTag
- All Implemented Interfaces:
- BodyTag, IterationTag, JspTag, Serializable, Tag
- public class FooTag
- extends ExampleTagBase
Example1: the simplest tag
Collect attributes and call into some actions
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FooTag
public FooTag()
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 © 2006 Apache Software Foundation. All Rights Reserved.