lgstarzkhl 发表于 2013-2-7 15:57:45

struts1的html:select标签使用

<html:select property="danweitype" styleClass="jump3" disabled="true"><html:option value="">--请选择--</html:option><html:options collection="dingjifenleiList" property="value"labelProperty="label" /></html:select>
property 对应的是struts.xml文件中的值
styleClass 指定样式表文件
disabled 表明是否变灰,就是是不是可选或者可用
value="" 指定默认选中的值是哪个
html:option 下拉列表中的选择项
html:options 指定的集合的内容,是一个labelvalueBean的动态数组
页: [1]
查看完整版本: struts1的html:select标签使用