KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > pageflow > NotPresentTag


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.bridge.jsp.taglib.pageflow;
11
12 import javax.servlet.jsp.JspTagException JavaDoc;
13
14 /**
15  * The inverse of PresentTag.
16  *
17  * @see PresentTag
18  * @author Michiel Meeuwissen
19  * @version $Id: NotPresentTag.java,v 1.12 2004/03/23 21:42:48 michiel Exp $
20  */

21
22 public class NotPresentTag extends PresentTag {
23
24     public int doStartTag() throws JspTagException JavaDoc {
25         if ((! getContextProvider().getContextContainer().isPresent(getReferid())) != getInverse()) {
26             return EVAL_BODY;
27         } else {
28             return SKIP_BODY;
29         }
30     }
31
32 }
33
Popular Tags