org.apache.struts.taglib.html
public class SelectTag extends BaseHandlerTag
Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
Field Summary | |
---|---|
protected String[] | match
The actual values we will match against, calculated in doStartTag(). |
protected static MessageResources | messages
The message resources for this package. |
protected String | multiple
Should multiple selections be allowed. |
protected String | name
The name of the bean containing our underlying property. |
protected String | property
The property name we are associated with. |
protected String | saveBody
The saved body content of this tag. |
protected String | size
How many available options should be displayed when this element
is rendered? |
protected String | value
The value to compare with for marking an option selected. |
Method Summary | |
---|---|
void | calculateMatchValues()
Calculate the match values we will actually be using. |
int | doAfterBody()
Save any body content of this tag, which will generally be the
option(s) representing the values displayed to the user.
|
int | doEndTag()
Render the end of this form.
|
int | doStartTag()
Render the beginning of this select tag.
|
String | getMultiple() |
String | getName() |
String | getProperty()
Return the property name. |
String | getSize() |
String | getValue()
Return the comparison value. |
boolean | isMatched(String value)
Does the specified value match one of those we are looking for?
|
protected String | prepareName()
Prepare the name element |
void | release()
Release any acquired resources. |
protected String | renderSelectStartElement()
Create an appropriate select start element based on our parameters. |
void | setMultiple(String multiple) |
void | setName(String name) |
void | setProperty(String property)
Set the property name.
|
void | setSize(String size) |
void | setValue(String value)
Set the comparison value.
|
Throws: JspException
Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Support for indexed property since Struts 1.1
Throws: JspException if a JSP exception has occurred
Parameters: value Value to be compared.
Returns: The element name.
Throws: JspException
Since: Struts 1.1
Parameters: property The new property name
Parameters: value The new comparison value