doStartTag()和doEndTag()返回值是在Tag Interface里定义的静态int
SKIP_BODY隐含0 Skip body evaluation. Valid return value for doStartTag and doAfterBody. 跳过对body的处理。 就是跳过了开始和结束标签之间的代码。 EVAL_BODY_INCLUDE 隐含1 Evaluate body into existing out stream. Valid return value for doStartTag. This is an illegal return value for doStartTag when the class implements BodyTag, since BodyTag implies the creation of a new BodyContent. 将body的内容输出到存在的输出流中。包括是jsp代码,也可以被输出 SKIP_PAGE 隐含5 Skip the rest of the page. Valid return value for doEndTag. 忽略剩下的页面。 EVAL_PAGE 隐含6 Continue evaluating the page. Valid return value for doEndTag(). 继续执行下面的页 |