%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
View the HTML source to see the generated option values. Single select, size="1" (drop down list) Single select, size="4" Multi-select, size="7" Option values and labels populated from the same array: Option values and labels populated from different arrays: Option values populated from an array and labels populated from a
collection: Options populated from a Collection of LabelValueBeans, using
<html:options>: Options populated from a Collection of LabelValueBeans, using
<html:optionsCollection>: Options populated from a Collection of BookBeans, using Options populated from a Collection of BookBeans, using Options populated from a Map, using Options populated from a Map, using
Select / Options examples
1. Simple select tags
2. Populating options from arrays and collections
3. Populating options from a Collection of LabelValueBeans
4. Populating options from a Collection of custom beans
<html:options>:
<html:optionsCollection>:
4. Populating options from a Map
<html:options>:
<html:optionsCollection>: