org.apache.struts.taglib
Class IfPropertyEqualsTag

org.apache.struts.taglib.BaseAttributeTag
  |
  +--org.apache.struts.taglib.IfPropertyEqualsTag

public class IfPropertyEqualsTag
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:02 $
Author:
Arun M. Thomas

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
 
Constructor Summary
IfPropertyEqualsTag()
           
 
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
 

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

IfPropertyEqualsTag

public IfPropertyEqualsTag()
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.
Throws:
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