
2007年11月4日
<html:select property="personnelId">
<html:option value="">請選擇</html:option>
<html:options collection="personList" property="personId" labelProperty="personName"/>
</html:select>
html:options自動幫你迭代personList中的內(nèi)容,前提是personList是Collection類型的,而且封裝的是一個包含personId,personName屬性的對象
property顯示的是value,labelProperty顯示的是頁面看到的內(nèi)容
posted @
2007-11-04 21:59 溫娜 閱讀(395) |
評論 (0) |
編輯 收藏