读书人

怎么获取lt;html:optionsgt; collection中

发布时间: 2011-12-07 22:35:48 作者: rapoo

如何获取<html:options> collection中某一选项的值
大家好,现有如下代码:
<html:select property="id">
<html:options collection="employees" property="empID" labelProperty="name" />
</html:select>

而我要取出这个下拉列表中的某一项的值,如何实现呢?谢谢

[解决办法]
你在网页中访问这个页面,然后查看源代码,里面就有值了

读书人网 >Java Web开发

热点推荐