1 23 package org.dbforms.taglib; 24 import javax.servlet.jsp.JspException ; 25 26 27 28 36 public class DbFooterTag extends DbBaseHandlerTag { 37 44 public int doAfterBody() throws JspException { 45 return SKIP_BODY; } 47 48 49 56 public int doEndTag() throws JspException { 57 try { 58 if (bodyContent != null) { 59 bodyContent.writeOut(bodyContent.getEnclosingWriter()); 60 bodyContent.clearBody(); } 62 } catch (java.io.IOException e) { 63 throw new JspException ("IO Error: " + e.getMessage()); 64 } 65 66 return EVAL_PAGE; 67 } 68 69 70 75 public int doStartTag() { 76 if (getParentForm().isFooterReached()) { 77 return EVAL_BODY_BUFFERED; 78 } else { 79 return SKIP_BODY; 80 } 81 } 82 } 83 | Popular Tags |