| < Day Day Up > |
|
The <html:options /> tag (as a child of the <html:select /> tag) is used to generate a list of HTML <option> elements. The <html:options /> tag has no body and supports eight attributes, described in Table 16.17.
Attribute | Description |
---|---|
collection | Specifies a JSP scripting variable that references a collection of beans, with each bean containing the properties property and labelProperty, which are used as the tag attribute value's property and labelProperty, respectively. (required) |
filter | If set to true (the default), causes the tag to replace all HTML-sensitive characters with their encoded equivalents. (optional) |
labelName | Specifies a scripting variable that references a collection of labels to be displayed to the user for the options in this option list. The object referenced by the label-Name attribute can point to the collection directly or to an object that contains a data member referencing the collection. (optional) |
labelProperty | Specifies the property of the object identified by the labelName attribute that references the collection of option labels. (optional) |
name | Identifies a scripting variable referencing a Collection object that contains a collection of option values. (optional) |
property | Used to identify a data member of the bean named by the name attribute that contains a collection of option values. (optional) |
style | Specifies a Cascading Style Sheet style to apply to this HTML element. (optional) |
styleClass | Specifies a Cascading Style Sheet class to apply to this HTML element. (optional) |
The <html:options /> tag must be nested inside an <html:select /> tag. The <html:options /> tag can also be used n-number of times within an <html:select /> element.
| < Day Day Up > |
|