org.apache.struts.taglib
Class IfPropertyNotEqualsTag

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

public class IfPropertyNotEqualsTag
extends BaseAttributeTag

Conditionally include the body of this tag if the specified property of the specified attribute (in any scope) has the specified value.

Version:
$Revision: 1.5 $ $Date: 2001/05/20 01:19:03 $
Author:
Arun M. Thomas
See Also:
Serialized Form

Field Summary
private static MessageResources messages
          The message resources for this package.
private  java.lang.String property
          The name of the property to get.
private  java.lang.String value
          The value to compare to.
 
Fields inherited from class org.apache.struts.taglib.BaseAttributeTag
name, scope
 
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
IfPropertyNotEqualsTag()
           
 
Method Summary
 int doStartTag()
          Conditionally evaluate the body content of this tag.
 java.lang.String getProperty()
          Return the property name.
 java.lang.String getValue()
          Return the matching value.
 void release()
          Release any acquired resources.
 void setProperty(java.lang.String property)
          Set the property name.
 void setValue(java.lang.String value)
          Set the matching value.
 
Methods inherited from class org.apache.struts.taglib.BaseAttributeTag
getName, getScope, getScopeId, setName, setScope
 
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

messages

private static MessageResources messages
The message resources for this package.

property

private java.lang.String property
The name of the property to get.

value

private java.lang.String value
The value to compare to.
Constructor Detail

IfPropertyNotEqualsTag

public IfPropertyNotEqualsTag()
Method Detail

getProperty

public java.lang.String getProperty()
Return the property name.

setProperty

public void setProperty(java.lang.String property)
Set the property name.
Parameters:
property - The property name

getValue

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

setValue

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

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Conditionally evaluate the body content of this tag.
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 BaseAttributeTag


Copyright © 2000-2002 - Apache Software Foundation