org.ujac.web.tag
Class CaseTag

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.CaseTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, TemplateContextHolder

public class CaseTag
extends BaseConditionTag

Name: CaseTag
Description: A custom tag class implementing the tag <ujac:case>.
.

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
CaseTag()
           
 
Method Summary
protected  boolean evalCondition()
          Evaluates the condition.
 void setValue(String value)
          Setter method for the the property value.
 
Methods inherited from class org.ujac.web.tag.BaseConditionTag
doAfterBody, doEndTag, doStartTag, getTemplateContext, release, 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

CaseTag

public CaseTag()
Method Detail

setValue

public void setValue(String value)
Setter method for the the property value.

Parameters:
value - The value to set for the property value.

evalCondition

protected boolean evalCondition()
                         throws JspException
Description copied from class: BaseConditionTag
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.
See Also:
BaseConditionTag.evalCondition()


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