| < Day Day Up > |
|
The <html:option /> tag is used to generate an HTML <input> element of type <option>, which represents a single option element nested inside a parent <select> element. The <html:option /> tag has a body type of JSP and supports eight attributes, described in Table 16.16.
Attribute | Description |
---|---|
value | Represents the value that is submitted if this checkbox is selected. (required) |
bundle | Specifies a MessageResources key of the resource bundle defined in the struts-config <message-resource> element. The default key is ApplicationResources. (optional) |
disabled | If set to true, causes this HTML input element to be disabled. The default value is false. (optional) |
key | Defines a resources key (to be retrieved from a resource bundle) that references a text string to be displayed to the user as this element's text value. (optional) |
locale | Specifies the session attribute containing the Locale instance of the current request. This Locale is then used to select Locale-specific text messages. (optional) |
style | Specifies a Cascading Style Sheet style to apply to this HTML element. (optional) |
styleId | Associates an id attribute with the rendered <option> tag. (optional) |
styleClass | Specifies a Cascading Style Sheet class to apply to this HTML element. (optional) |
This tag is valid only when nested within an <html:select /> tag.
| < Day Day Up > |
|