我得到了一个ArrayList
怎么用 struts的标签生成一个select 下拉形式
求例子,谢谢

解决方案 »

  1.   


    <html:select property="item.role.roleId">
    <html:optionsCollection  name="roleList"  value="roleId" label="roleName"/>
    </html:select>
      

  2.   

    struts几呢?struts1
     <html:select property="player.teams.teamId">
               <html:options collection="teamList" labelProperty="teamName" property="teamId"/>
              </html:select>struts2
    <s:select list="claList" name="student.classes.classId" listKey="classId" listValue="className" label="CLASS"></s:select>