public class SizeTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected Object |
collection
The actual collection to be counted.
|
protected 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 String |
name
The name of the bean owning the property to be counted.
|
protected String |
property
The name of the property to be retrieved.
|
protected 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.
|
Object |
getCollection() |
String |
getId() |
String |
getName() |
String |
getProperty() |
String |
getScope() |
void |
release()
Release all allocated resources.
|
void |
setCollection(Object collection) |
void |
setId(String id) |
void |
setName(String name) |
void |
setProperty(String property) |
void |
setScope(String scope) |
protected static MessageResources messages
protected Object collection
protected String id
protected String name
protected String property
protected String scope
public Object getCollection()
public void setCollection(Object collection)
public String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public String getName()
public void setName(String name)
public String getProperty()
public void setProperty(String property)
public String getScope()
public void setScope(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–2016 Apache Software Foundation. All rights reserved.