com.acsinet_solutions.cetia4.tags.nav
Class IfMenuTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
              extended by com.acsinet_solutions.cetia4.tags.nav.IfMenuTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public final class IfMenuTag
extends LogConditionalTagSupport

A tag that prints it's contents if a menu meta tag is one of a given list. This tag uses facilities of SiteMesh to allow a page to configure some menu options if the user is in a given page. TODO: Add to nav.tld

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
IfMenuTag()
           
 
Method Summary
protected  boolean condition()
           
 int doEndTag()
           
 void setTypes(java.lang.String types)
          Set the types of the menu.
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
doCatch, doFinally, getConfiguration, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, release, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfMenuTag

public IfMenuTag()
Method Detail

setTypes

public final void setTypes(java.lang.String types)
Set the types of the menu.


condition

protected final boolean condition()
                           throws javax.servlet.jsp.JspTagException
Specified by:
condition in class javax.servlet.jsp.jstl.core.ConditionalTagSupport
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doEndTag()