org.apache.struts.taglib
Class IfParameterNotEqualsTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.apache.struts.taglib.IfParameterNotEqualsTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IfParameterNotEqualsTag
extends javax.servlet.jsp.tagext.TagSupport

Conditionally include the body of this tag if the specified parameter does not match the specified value.

Version:
$Revision: 1.3 $ $Date: 2000/08/01 20:03:33 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          The name of the parameter being compared.
protected  java.lang.String value
          The value to compare this parameter to.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
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
IfParameterNotEqualsTag()
           
 
Method Summary
 int doStartTag()
          Compare the specified parameter to the specified value, and decide whether or not to include the body content.
 java.lang.String getName()
          Return the parameter name.
 java.lang.String getValue()
          Return the comparison value.
 void release()
          Release any acquired resources.
 void setName(java.lang.String name)
          Set the parameter name.
 void setValue(java.lang.String value)
          Set the comparison value.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the parameter being compared.

value

protected java.lang.String value
The value to compare this parameter to.
Constructor Detail

IfParameterNotEqualsTag

public IfParameterNotEqualsTag()
Method Detail

getName

public java.lang.String getName()
Return the parameter name.

setName

public void setName(java.lang.String name)
Set the parameter name.
Parameters:
name - The new parameter name

getValue

public java.lang.String getValue()
Return the comparison value.

setValue

public void setValue(java.lang.String value)
Set the comparison value.
Parameters:
value - The new comparison value

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Compare the specified parameter to the specified value, and decide whether or not to include the body content.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2000-2002 - Apache Software Foundation