Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by MichaelJouravlev: http://wiki.apache.org/struts/StrutsWidgets New page: === HTML SELECT element === Use <html:select> tag to create HTML SELECT widget. {{{ <html:select name="addressForm" property="currentStateCode" size="1"> <html:optionsCollection name="stateList" value="stateCode" label="stateName"/> </html:select> }}} HTML SELECT can be rendered either as dropdown box or as a listbox. To create a dropdown box set ''size'' less than 2 or do not specify ''size'' at all. To create a listbox specify ''size'' larger than 2. <html:select> tag specifies current value: * ''name'' is the name of plain javabean or an ActionForm; optional * ''property'' is the property in the javabean that holds current value <html:optionsCollection> specifies the collection that contains selectable items: * ''name'' is the collection name; it can be defined in any scope; * ''value'' specifies the property containing item value; corresponds to property from <html:select> tag * ''label'' specifies the property containing item label; this is what is shown to a user. attachment:selectwidget.gif --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]