org.ujac.web.tag
Class ElseTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.ujac.web.tag.BaseConditionTag
              extended by org.ujac.web.tag.ElseTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, TemplateContextHolder

public class ElseTag
extends BaseConditionTag

Name: IfTag
Description: A custom tag class implementing the tag <ujac:else>.

Author:
lauerc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
ElseTag()
           
 
Method Summary
protected  boolean evalCondition()
          Evaluates the condition.
 void release()
          Resets the custom tag values.
 
Methods inherited from class org.ujac.web.tag.BaseConditionTag
doAfterBody, doEndTag, doStartTag, getTemplateContext, setAttribute
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ElseTag

public ElseTag()
Method Detail

evalCondition

protected boolean evalCondition()
                         throws JspException
Evaluates the condition.

Specified by:
evalCondition in class BaseConditionTag
Returns:
true in case the body shall be processed, else false.
Throws:
JspException - In case something went wrong.

release

public void release()
Resets the custom tag values.

Specified by:
release in interface Tag
Overrides:
release in class BaseConditionTag
See Also:
BodyTagSupport.release()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.