java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.logic.ConditionalTagBase
com.RuntimeCollective.webapps.tag.HasMembersTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class HasMembersTag
- extends org.apache.struts.taglib.logic.ConditionalTagBase
Evalute the nested body content of this tag if the specified value
is present on this request, and is an array, map, iterator, enumeration or collection of length>0.
This tag takes the following parameters:
-
name -- The name of the bean that holds the value. [Mandatory]
-
property -- The property on the bean that holds the value. [Optional]
-
scope -- The scope of the bean that holds the value. [Optional]
-
collection -- A runtime expression that evaluates to a collection. If this is defined then name, property, and scope are ignored. [Optional]
- Version:
- $Id: HasMembersTag.java,v 1.8 2003/09/30 15:13:18 joe Exp $
|
Method Summary |
protected boolean |
condition()
Evaluate the condition that is being tested by this particular tag,
and return true if the nested body content of this tag
should be evaluated, or false if it should be skipped. |
protected boolean |
condition(boolean desired)
Evaluate the condition that is being tested by this particular tag,
and return true if the nested body content of this tag
should be evaluated, or false if it should be skipped. |
java.lang.Object |
getCollection()
Get a collection. |
void |
release()
Release all allocated resources. |
void |
setCollection(java.lang.Object collection)
Set a collection. |
| Methods inherited from class org.apache.struts.taglib.logic.ConditionalTagBase |
doEndTag, doStartTag, getCookie, getHeader, getName, getParameter, getProperty, getRole, getScope, getUser, setCookie, setHeader, setName, setParameter, setProperty, setRole, setScope, setUser |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
collection
protected java.lang.Object collection
- A collection.
HasMembersTag
public HasMembersTag()
getCollection
public java.lang.Object getCollection()
- Get a collection.
setCollection
public void setCollection(java.lang.Object collection)
- Set a collection.
condition
protected boolean condition()
throws javax.servlet.jsp.JspException
- Evaluate the condition that is being tested by this particular tag,
and return
true if the nested body content of this tag
should be evaluated, or false if it should be skipped.
This method must be implemented by concrete subclasses.
condition
protected boolean condition(boolean desired)
throws javax.servlet.jsp.JspException
- Evaluate the condition that is being tested by this particular tag,
and return
true if the nested body content of this tag
should be evaluated, or false if it should be skipped.
This method must be implemented by concrete subclasses.
release
public void release()
- Description copied from class:
org.apache.struts.taglib.logic.ConditionalTagBase
- Release all allocated resources.