随笔-4  评论-4  文章-1  trackbacks-0
  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中的内容,前提是personList是Collection类型的,而且封装的是一个包含personId,personName属性的对象        
      property显示的是value,labelProperty显示的是页面看到的内容  
posted @ 2007-11-04 21:59 温娜 阅读(380) | 评论 (0)编辑 收藏