html:option

 < Day Day Up > 



<html:option />

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.

Table 16.16: <html:option /> Tag Attributes

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)

start sidebar

This tag is valid only when nested within an <html:select /> tag.

end sidebar



 < Day Day Up > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net