| org.apache.struts.taglib.logic.ConditionalTagBase org.apache.struts.taglib.logic.CompareTagBase
All known Subclasses: org.apache.struts.taglib.logic.LessEqualTag, org.apache.struts.taglib.logic.EqualTag, org.apache.struts.taglib.logic.GreaterThanTag, org.apache.struts.taglib.logic.NotEqualTag, org.apache.struts.taglib.logic.GreaterEqualTag, org.apache.struts.taglib.logic.LessThanTag,
CompareTagBase | abstract public class CompareTagBase extends ConditionalTagBase (Code) | | Abstract base class for comparison tags. Concrete subclasses need only
define values for desired1 and desired2.
version: $Rev: 471754 $ $Date: 2004-10-16 12:38:42 -0400 (Sat, 16 Oct 2004) version: $ |
Field Summary | |
final protected static int | DOUBLE_COMPARE We will do a double/float comparison. | final protected static int | LONG_COMPARE We will do a long/int comparison. | final protected static int | STRING_COMPARE We will do a String comparison. | protected static MessageResources | messages The message resources for this package. | public String | value The value to which the variable specified by other attributes of this
tag will be compared. |
Method Summary | |
abstract protected boolean | condition() Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped. | protected boolean | condition(int desired1, int desired2) Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped. | public String | getValue() | public void | release() Release all allocated resources. | public void | setValue(String value) |
DOUBLE_COMPARE | final protected static int DOUBLE_COMPARE(Code) | | We will do a double/float comparison.
|
LONG_COMPARE | final protected static int LONG_COMPARE(Code) | | We will do a long/int comparison.
|
STRING_COMPARE | final protected static int STRING_COMPARE(Code) | | We will do a String comparison.
|
value | public String value(Code) | | The value to which the variable specified by other attributes of this
tag will be compared.
|
condition | abstract protected boolean condition() throws JspException(Code) | | Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped. This
method must be implemented by concrete subclasses.
throws: JspException - if a JSP exception occurs |
condition | protected boolean condition(int desired1, int desired2) throws JspException(Code) | | Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped. This
method must be implemented by concrete subclasses.
Parameters: desired1 - First desired value for a true result (-1, 0, +1) Parameters: desired2 - Second desired value for a true result (-1, 0, +1) throws: JspException - if a JSP exception occurs |
release | public void release()(Code) | | Release all allocated resources.
|
|
|