|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.bean.SizeTag
org.apache.strutsel.taglib.bean.ELSizeTag
Define a scripting variable that will contain the number of elements found in a specified array, Collection, or Map.
This class is a subclass of the class
org.apache.struts.taglib.bean.SizeTag
which provides most of
the described functionality. This subclass allows all attribute values to
be specified as expressions utilizing the JavaServer Pages Standard Library
expression language.
Field Summary | |
private java.lang.String |
collectionExpr
Instance variable mapped to "collection" tag attribute. |
private java.lang.String |
idExpr
Instance variable mapped to "id" tag attribute. |
private java.lang.String |
nameExpr
Instance variable mapped to "name" tag attribute. |
private java.lang.String |
propertyExpr
Instance variable mapped to "property" tag attribute. |
private java.lang.String |
scopeExpr
Instance variable mapped to "scope" tag attribute. |
Fields inherited from class org.apache.struts.taglib.bean.SizeTag |
collection, id, messages, name, property, scope |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
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 | |
ELSizeTag()
|
Method Summary | |
int |
doStartTag()
Process the start tag. |
private void |
evaluateExpressions()
Processes all attribute values which use the JSTL expression evaluation engine to determine their values. |
java.lang.String |
getCollectionExpr()
Getter method for "collection" tag attribute. |
java.lang.String |
getIdExpr()
Getter method for "id" tag attribute. |
java.lang.String |
getNameExpr()
Getter method for "name" tag attribute. |
java.lang.String |
getPropertyExpr()
Getter method for "property" tag attribute. |
java.lang.String |
getScopeExpr()
Getter method for "scope" tag attribute. |
void |
release()
Releases state of custom tag so this instance can be reused. |
void |
setCollectionExpr(java.lang.String collectionExpr)
Setter method for "collection" tag attribute. |
void |
setIdExpr(java.lang.String idExpr)
Setter method for "id" tag attribute. |
void |
setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. |
void |
setPropertyExpr(java.lang.String propertyExpr)
Setter method for "property" tag attribute. |
void |
setScopeExpr(java.lang.String scopeExpr)
Setter method for "scope" tag attribute. |
Methods inherited from class org.apache.struts.taglib.bean.SizeTag |
getCollection, getId, getName, getProperty, getScope, setCollection, setId, setName, setProperty, setScope |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String collectionExpr
private java.lang.String idExpr
private java.lang.String nameExpr
private java.lang.String propertyExpr
private java.lang.String scopeExpr
Constructor Detail |
public ELSizeTag()
Method Detail |
public java.lang.String getCollectionExpr()
public java.lang.String getIdExpr()
public java.lang.String getNameExpr()
public java.lang.String getPropertyExpr()
public java.lang.String getScopeExpr()
public void setCollectionExpr(java.lang.String collectionExpr)
public void setIdExpr(java.lang.String idExpr)
public void setNameExpr(java.lang.String nameExpr)
public void setPropertyExpr(java.lang.String propertyExpr)
public void setScopeExpr(java.lang.String scopeExpr)
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurredprivate void evaluateExpressions() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |