public class SizeTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
collection
The actual collection to be counted.
|
protected java.lang.String |
id
The name of the scripting variable that will be exposed as a page scope
attribute.
|
protected static MessageResources |
messages
The message resources for this package.
|
protected java.lang.String |
name
The name of the bean owning the property to be counted.
|
protected java.lang.String |
property
The name of the property to be retrieved.
|
protected java.lang.String |
scope
The scope within which to search for the specified bean.
|
Constructor and Description |
---|
SizeTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable.
|
java.lang.Object |
getCollection() |
java.lang.String |
getId() |
java.lang.String |
getName() |
java.lang.String |
getProperty() |
java.lang.String |
getScope() |
void |
release()
Release all allocated resources.
|
void |
setCollection(java.lang.Object collection) |
void |
setId(java.lang.String id) |
void |
setName(java.lang.String name) |
void |
setProperty(java.lang.String property) |
void |
setScope(java.lang.String scope) |
protected static MessageResources messages
protected java.lang.Object collection
protected java.lang.String id
protected java.lang.String name
protected java.lang.String property
protected java.lang.String scope
public java.lang.Object getCollection()
public void setCollection(java.lang.Object collection)
public java.lang.String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(java.lang.String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.