Tags are Java classes implementing JSP Tag extensions. The class must
have a null argument public constructor and implement the tag attribute
as setXXX methods, following the Beans spec.
MyTag tag = new MyTag();
tag.setPageContext(page);
tag.setParent(...);
tag.setFoo(...);
tag.setBar(...);
if (tag.doStartTag() == EVAL_BODY_INCLUDE) {
...
}
if (tag.doEndTag() == SKIP_PAGE)
return;
...
tag.setParent(...);
tag.setFoo(...);
if (tag.doStartTag() == EVAL_BODY_INCLUDE) {
...
}
if (tag.doEndTag() == SKIP_PAGE)
return;
...
tag.release();
doStartTag can assume setPageContext,
setParent, and all tag attribute properties have
been called.
SKIP_BODY to ignore the body and EVAL_BODY_INCLUDEto evaluate the body.