KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > taglibs > declarations > DeclareContainerTag


1 package org.jahia.taglibs.declarations;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4 import javax.servlet.jsp.tagext.BodyTagSupport JavaDoc;
5
6 /**
7  * <p>Title: Container declaration </p>
8  * <p>Description: This tag is used to declare a container. Basically it is
9  * just a holder for a list of sub fields and container lists.</p>
10  * <p>Copyright: Copyright (c) 2002</p>
11  * <p>Company: </p>
12  * @author Serge Huber
13  * @version 1.0
14  */

15
16 public class DeclareContainerTag extends BodyTagSupport JavaDoc {
17     public DeclareContainerTag() {
18     }
19
20     public int doStartTag() {
21         return EVAL_BODY_BUFFERED;
22     }
23
24     public int doAfterBody() throws JspException JavaDoc {
25         return SKIP_BODY;
26     }
27
28     public int doEndTag() throws JspException JavaDoc {
29         // let's reinitialize the tag variables to allow tag object reuse in
30
// pooling.
31
super.doEndTag();
32
33         if (getId() != null) {
34             pageContext.removeAttribute(getId());
35         }
36         return EVAL_PAGE;
37     }
38
39 }
Popular Tags