|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.Options1Tag
Tag for creating multiple <select> options from a collection. The associated values displayed to the user may optionally be specified by a second collection, or will be the same as the values themselves. Each collection may be an array of objects, a Dictionary, an Enumeration, or a Vector.
This is the JDK 1.1 compatible version of the options
tag.
Field Summary | |
private java.lang.String |
labelName
The name of the bean containing the labels collection. |
private java.lang.String |
labelProperty
The bean property containing the labels collection. |
protected static MessageResources |
messages
The message resources for this package. |
private java.lang.String |
name
The name of the bean containing the values collection. |
private java.lang.String |
property
The name of the property to use to build the values collection. |
Constructor Summary | |
Options1Tag()
|
Method Summary | |
int |
doEndTag()
Process the end of this tag. |
int |
doStartTag()
Process the start of this tag. |
private java.util.Enumeration |
getEnumeration(java.lang.String name,
java.lang.String property)
Return an enumeration for the option labels or values, based on our configured properties. |
java.lang.String |
getLabelName()
|
java.lang.String |
getLabelProperty()
|
java.lang.String |
getName()
|
java.lang.String |
getProperty()
|
void |
release()
Release any acquired resources. |
void |
setLabelName(java.lang.String labelName)
|
void |
setLabelProperty(java.lang.String labelProperty)
|
void |
setName(java.lang.String name)
|
void |
setProperty(java.lang.String property)
|
Field Detail |
protected static MessageResources messages
private java.lang.String labelName
private java.lang.String labelProperty
private java.lang.String name
private java.lang.String property
Constructor Detail |
public Options1Tag()
Method Detail |
public java.lang.String getLabelName()
public void setLabelName(java.lang.String labelName)
public java.lang.String getLabelProperty()
public void setLabelProperty(java.lang.String labelProperty)
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 int doStartTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic void release()
private java.util.Enumeration getEnumeration(java.lang.String name, java.lang.String property) throws javax.servlet.jsp.JspException
name
- Name of the bean attribute (if any)property
- Name of the bean property (if any)JspException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |