form
Tag option


Renders a single HTML 'option'. Sets 'selected' as appropriate based on bound value.


Tag Information
Tag Classorg.springframework.web.servlet.tags.form.OptionTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
cssClassfalsetruejava.lang.StringEquivalent to "class" - HTML Optional Attribute
cssErrorClassfalsetruejava.lang.StringEquivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssStylefalsetruejava.lang.StringEquivalent to "style" - HTML Optional Attribute
dirfalsetruejava.lang.StringHTML Standard Attribute
disabledfalsetruejava.lang.StringHTML Optional Attribute. Setting the value of this attribute to 'true' will disable the HTML element.
htmlEscapefalsetruejava.lang.StringEnable/disable HTML escaping of rendered values.
idfalsetruejava.lang.StringHTML Standard Attribute
labelfalsetruejava.lang.StringHTML Optional Attribute
langfalsetruejava.lang.StringHTML Standard Attribute
onclickfalsetruejava.lang.StringHTML Event Attribute
ondblclickfalsetruejava.lang.StringHTML Event Attribute
onkeydownfalsetruejava.lang.StringHTML Event Attribute
onkeypressfalsetruejava.lang.StringHTML Event Attribute
onkeyupfalsetruejava.lang.StringHTML Event Attribute
onmousedownfalsetruejava.lang.StringHTML Event Attribute
onmousemovefalsetruejava.lang.StringHTML Event Attribute
onmouseoutfalsetruejava.lang.StringHTML Event Attribute
onmouseoverfalsetruejava.lang.StringHTML Event Attribute
onmouseupfalsetruejava.lang.StringHTML Event Attribute
tabindexfalsetruejava.lang.StringHTML Standard Attribute
titlefalsetruejava.lang.StringHTML Standard Attribute
valuetruetruejava.lang.StringHTML Optional Attribute

Variables
NameTypeDeclareScopeDescription
valuejava.lang.ObjecttrueNESTEDThe actual value bound to the 'value' attribute
displayValuejava.lang.StringtrueNESTEDThe String representation of thr value bound to the 'value' attribute, taking into consideration any PropertyEditor associated with the enclosing 'select' tag.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.