net.sf.ewc.taglib
Class IfTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bynet.sf.ewc.taglib.EWCTag
              extended bynet.sf.ewc.taglib.IfTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IfTag
extends EWCTag

IfTagprocesses or skips its contents, depending on a condition test. The source parameter must point to a boolean value

Author:
mballesteros
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.ewc.taglib.EWCTag
out, pageContext, parent, session
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
IfTag()
          Main constructor
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void setSrc(java.lang.String src)
          Sets the expression to the boolean value that decides whether or not process contents
 
Methods inherited from class net.sf.ewc.taglib.EWCTag
getComponentPropertyFullExpression, getComponentPropertyValue, getComposedExpression, getContextPath, getCtx, getCtx, getCtx, getCtxPath, getCtxPath, getCtxPath, getCtxStack, getCtxStack, getEvent, getEWCSession, getExpressionValue, getExpressionValue, getExpressionValueAsString, getExpressionValueAsString, getFullExpression, getIndexedExpression, getParent, getStack, getStack, peekCtx, peekCtx, popCtx, printAttribute, printBeginTag, printEndBeginTag, printEndTag, printEndTag, pushCtx, pushCtx, pushCtx, pushCtx, release, setPageContext, setParent, substituteParentParameters
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfTag

public IfTag()
Main constructor

Method Detail

setSrc

public void setSrc(java.lang.String src)
Sets the expression to the boolean value that decides whether or not process contents

Parameters:
src - The expression

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class EWCTag
Returns:

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class EWCTag
Returns:


Copyright © 2003-2004 SourceForge. All Rights Reserved.