1 package org.jahia.taglibs.declarations; 2 3 import javax.servlet.jsp.JspException ; 4 import javax.servlet.jsp.tagext.BodyTagSupport ; 5 6 15 16 public class DeclareContainerTag extends BodyTagSupport { 17 public DeclareContainerTag() { 18 } 19 20 public int doStartTag() { 21 return EVAL_BODY_BUFFERED; 22 } 23 24 public int doAfterBody() throws JspException { 25 return SKIP_BODY; 26 } 27 28 public int doEndTag() throws JspException { 29 super.doEndTag(); 32 33 if (getId() != null) { 34 pageContext.removeAttribute(getId()); 35 } 36 return EVAL_PAGE; 37 } 38 39 } | Popular Tags |