If the value of the corresponding bean property matches the specified value, this option will be marked selected. This tag is only valid when nested inside a <html:select>
tag body.
Attributes |
Name | Required | Request-time | Type | Description |
bundle | false | true | java.lang.String | The servlet context attributes key for the MessageResources instance to use. If not specified, defaults to the application resources configured for our action servlet. |
dir | false | true | java.lang.String | The direction for weak/neutral text for this element. - Since:
- Struts 1.3.6
|
disabled | false | true | boolean | Set to true if this option should be disabled. |
filter | false | true | boolean | Set to true if you want the option label to be filtered for sensitive characters in HTML. By default, such a value is NOT filtered. |
lang | false | true | java.lang.String | The language code for this element. - Since:
- Struts 1.3.6
|
key | false | true | java.lang.String | If specified, defines the message key to be looked up in the resource bundle specified by bundle for the text displayed to the user for this option. If not specified, the text to be displayed is taken from the body content of this tag. |
locale | false | true | java.lang.String | The session attributes key for the Locale instance to use for looking up the message specified by the key attribute. If not specified, uses the standard Struts session attribute name. |
style | false | true | java.lang.String | CSS styles to be applied to this HTML element. |
styleId | false | true | java.lang.String | Identifier to be assigned to this HTML element (renders an "id" attribute). |
styleClass | false | true | java.lang.String | CSS stylesheet class to be applied to this HTML element (renders a "class" attribute). |
value | true | true | java.lang.String | Value to be submitted for this field if this option is selected by the user. |