org.apache.struts.taglib
Class SelectTag

org.apache.struts.taglib.BaseHandlerTag
  |
  +--org.apache.struts.taglib.SelectTag

public final class SelectTag
extends BaseHandlerTag

Custom tag that represents an HTML select element, associated with a bean property specified by our attributes. This tag must be nested inside a form tag.

Version:
$Revision: 1.12 $ $Date: 2001/05/20 01:19:06 $
Author:
Craig R. McClanahan

Field Summary
private  java.lang.String match
          The actual value we will match against, calculated in doStartTag().
protected static MessageResources messages
          The message resources for this package.
private  java.lang.String multiple
          Should multiple selections be allowed?
private  java.lang.String name
          The name of the bean containing our underlying property.
private  java.lang.String property
          The property name we are associated with.
private  java.lang.String size
          How many available options should be displayed when this element is rendered?
private  java.lang.String value
          The value to compare with for marking an option selected.
 
Fields inherited from class org.apache.struts.taglib.BaseHandlerTag
accessKey, onBlur, onChange, onClick, onDblClick, onFocus, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelect, style, styleClass, styleId, tabIndex
 
Constructor Summary
SelectTag()
           
 
Method Summary
 int doEndTag()
          Render the end of this form.
 int doStartTag()
          Render the beginning of this form.
 java.lang.String getMatch()
          Return the actual match value (only valid from nested tags).
 java.lang.String getMultiple()
           
 java.lang.String getName()
           
 java.lang.String getProperty()
          Return the property name.
 java.lang.String getSize()
           
 java.lang.String getValue()
          Return the comparison value.
 void release()
          Release any acquired resources.
 void setMultiple(java.lang.String multiple)
           
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String property)
          Set the property name.
 void setSize(java.lang.String size)
           
 void setValue(java.lang.String value)
          Set the comparison value.
 
Methods inherited from class org.apache.struts.taglib.BaseHandlerTag
getAccessKey, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getStyleClass, getStyleId, getTabIndex, prepareEventHandlers, prepareFocusEvents, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setStyleId, setTabIndex
 

Field Detail

match

private java.lang.String match
The actual value we will match against, calculated in doStartTag().

messages

protected static MessageResources messages
The message resources for this package.

multiple

private java.lang.String multiple
Should multiple selections be allowed? Any non-null value will trigger rendering this.

name

private java.lang.String name
The name of the bean containing our underlying property.

property

private java.lang.String property
The property name we are associated with.

size

private java.lang.String size
How many available options should be displayed when this element is rendered?

value

private java.lang.String value
The value to compare with for marking an option selected.
Constructor Detail

SelectTag

public SelectTag()
Method Detail

getMultiple

public java.lang.String getMultiple()

setMultiple

public void setMultiple(java.lang.String multiple)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getSize

public java.lang.String getSize()

setSize

public void setSize(java.lang.String size)

getMatch

public java.lang.String getMatch()
Return the actual match value (only valid from nested tags).

getProperty

public java.lang.String getProperty()
Return the property name.

setProperty

public void setProperty(java.lang.String property)
Set the property name.
Parameters:
property - The new property name

getValue

public java.lang.String getValue()
Return the comparison value.

setValue

public void setValue(java.lang.String value)
Set the comparison value.
Parameters:
value - The new comparison value

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the beginning of this form.
Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render the end of this form.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.
Overrides:
release in class BaseHandlerTag


Copyright © 2000-2002 - Apache Software Foundation