1 17 package javax.servlet.jsp.tagext; 18 19 import javax.servlet.jsp.JspException ; 20 import javax.servlet.jsp.JspWriter ; 21 22 34 35 public class BodyTagSupport extends TagSupport implements BodyTag { 36 37 45 46 public BodyTagSupport() { 47 super(); 48 } 49 50 57 58 public int doStartTag() throws JspException { 59 return EVAL_BODY_BUFFERED; 60 } 61 62 63 70 71 public int doEndTag() throws JspException { 72 return super.doEndTag(); 73 } 74 75 76 78 86 87 public void setBodyContent(BodyContent b) { 88 this.bodyContent = b; 89 } 90 91 92 101 102 public void doInitBody() throws JspException { 103 } 104 105 106 115 116 public int doAfterBody() throws JspException { 117 return SKIP_BODY; 118 } 119 120 121 126 127 public void release() { 128 bodyContent = null; 129 130 super.release(); 131 } 132 133 138 139 public BodyContent getBodyContent() { 140 return bodyContent; 141 } 142 143 144 149 150 public JspWriter getPreviousOut() { 151 return bodyContent.getEnclosingWriter(); 152 } 153 154 156 159 protected BodyContent bodyContent; 160 } 161 | Popular Tags |