All Implemented Interfaces:
IterationTag, JspTag, Tag, Serializable

public class IfTag extends ConditionalTagSupport

Tag handler for <if> in JSTL's expression-evaluating library. Because of the support provided by the ConditionalTagSupport class, thistag is trivial enough not to require a separate base supporting class common to both libraries.

Author:
Shawn Bayern
See Also:
  • Constructor Details

    • IfTag

      public IfTag()
  • Method Details

    • release

      public void release()
      Description copied from class: ConditionalTagSupport
      Releases any resources this ConditionalTagSupport may have (or inherit).
      Specified by:
      release in interface Tag
      Overrides:
      release in class ConditionalTagSupport
      See Also:
    • condition

      protected boolean condition() throws JspTagException
      Description copied from class: ConditionalTagSupport

      Subclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by doStartTag().

      Specified by:
      condition in class ConditionalTagSupport
      Returns:
      a boolean representing the condition that a particular subclass uses to drive its conditional logic.
      Throws:
      JspTagException - on failure
    • setTest

      public void setTest(String test)