当传入的List中保存的是javabean时,使用以下方式
其中<html:select> 中的value值表示,当options中有property的值与value相等是,将该值设置为默认选项
<html:select property="id" value="propertyidONE">
<html:options collection="dataList" property="propertyid"
labelProperty="propertyname" />
</html:select>
当传入的List中保存的只是单纯的显示对象,比如String时(即传入的为List<String>),使用以下方式
<html:select property="id">
<html:options name="dataList" />
</html:select>