select

Render a select box. Main difference with <html:select> tag:

  • Render a label
  • Support the struts-layout isRequired, layout, policy and mode special attributes.
Attribute NameDescription
arg0, arg1, arg2, arg3, arg4, key, locale, name, styleClass,property, multiple, size, value as in <html:select> and <bean:message>
filterfilter sensitive html characters. Works with data coming from all options tag
onchangeonchange javascript handler [EL]

radio

Render a radio button. Main difference with <html:radio> tag:

  • Render a label
  • Support the struts-layout isRequired, layout, policy and mode special attributes.

radios

Render a list of radio buttons. This tag is used as the select tag but it display radio buttons instead of a select box.

The list is populated by the <layout:option> and <layout:options> tags.

Attribute NameDescription
arg0, arg1, arg2, arg3, arg4, key, locale, name, styleClass, property, value as in <html:radio> and <bean:message>

checkboxes

Display a list of checkbox populated with the <layout:option> and <layout:options> tags. The corresponding form property must be a String indexed property.

Attribute NameDescription
colsNumber of checkbox columns

option

option & options & optionsCollection - add one or many options to a select box or a list of combo box

struts-layout version of the <html:option>, <html:options> and <html:optionsCollection> tags. Only the name has changed.

The options tag has an additional attribute named "sourceOf" that is used to make interdependent combo. Its attribute "property" is an EL.

optionsDependent

Link a child select with a main select. The main select tag must has a nested options tag with the sourceOf attribute set.

Attribute NameDescription
collectionProperty of the beans defined by the main select options tag that holds the child collections
dependsFromForm bean property this select depends from.
labelPropertyProperty that holds the value to display.
propertyProperty that holds the value to return in the Struts form.