1 23 24 package org.dbforms.taglib; 25 26 import javax.servlet.jsp.*; 27 28 29 30 38 public class DbHeaderTag extends DbBaseHandlerTag { 39 46 public int doAfterBody() throws JspException { 47 return SKIP_BODY; 48 } 49 50 51 58 public int doEndTag() throws JspException { 59 try { 60 if (bodyContent != null) { 61 bodyContent.writeOut(bodyContent.getEnclosingWriter()); 62 bodyContent.clearBody(); } 64 } catch (java.io.IOException e) { 65 throw new JspException("IO Error: " + e.getMessage()); 66 } 67 68 return EVAL_PAGE; 69 } 70 71 72 77 public int doStartTag() { 78 if (getParentForm() 79 .getCurrentCount() == 0) { 80 return EVAL_BODY_BUFFERED; 81 } else { 82 return SKIP_BODY; 83 } 84 } 85 } 86 | Popular Tags |