Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 package examples; 17 18 import javax.servlet.jsp.*; 19 import javax.servlet.jsp.tagext.*; 20 21 public abstract class ExampleTagBase extends BodyTagSupport { 22 23 public void setParent(Tag parent) { 24 this.parent = parent; 25 } 26 27 public void setBodyContent(BodyContent bodyOut) { 28 this.bodyOut = bodyOut; 29 } 30 31 public void setPageContext(PageContext pageContext) { 32 this.pageContext = pageContext; 33 } 34 35 public Tag getParent() { 36 return this.parent; 37 } 38 39 public int doStartTag() throws JspException { 40 return SKIP_BODY; 41 } 42 43 public int doEndTag() throws JspException { 44 return EVAL_PAGE; 45 } 46 47 48 public void doInitBody() throws JspException { 51 } 52 53 public int doAfterBody() throws JspException { 54 return SKIP_BODY; 55 } 56 57 public void release() { 58 bodyOut = null; 59 pageContext = null; 60 parent = null; 61 } 62 63 protected BodyContent bodyOut; 64 protected PageContext pageContext; 65 protected Tag parent; 66 } 67
| Popular Tags
|