六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 46|回复: 0

struts1的html:select标签使用

[复制链接]

升级  9.33%

64

主题

64

主题

64

主题

举人

Rank: 3Rank: 3

积分
228
 楼主| 发表于 2013-2-7 15:57:45 | 显示全部楼层 |阅读模式
<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的动态数组
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表