org.apache.struts.taglib
Class BaseAttributeTag

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

public abstract class BaseAttributeTag
extends javax.servlet.jsp.tagext.TagSupport

Base class for conditionals based on the presence or absence of attributes in some appropriate scope (default=session). This class cannot be directly instantiated; it must be subclassed.

Version:
$Revision: 1.2 $ $Date: 2000/07/17 16:37:44 $
Author:
Arun M. Thomas
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          The name of the attribute being tested.
protected  java.lang.String scope
          The scope of the attribute being tested.
 
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
BaseAttributeTag()
           
 
Method Summary
 java.lang.String getName()
          Return the attribute name.
 java.lang.String getScope()
          Return the attribute scope.
protected  int getScopeId()
          Return the scope identifier of the scope we are requesting.
 void release()
          Release any acquired resources.
 void setName(java.lang.String name)
          Set the attribute name.
 void setScope(java.lang.String scope)
          Set the attribute scope.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, 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 attribute being tested.

scope

protected java.lang.String scope
The scope of the attribute being tested.
Constructor Detail

BaseAttributeTag

public BaseAttributeTag()
Method Detail

getName

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

setName

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

getScope

public java.lang.String getScope()
Return the attribute scope.

setScope

public void setScope(java.lang.String scope)
Set the attribute scope.
Parameters:
scope - The new attribute scope

release

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

getScopeId

protected int getScopeId()
Return the scope identifier of the scope we are requesting.


Copyright © 2000-2002 - Apache Software Foundation