<list list=(list)request.getattribute("xxx");> <html:select property="xxx"> <%for(int i=0;i<list.size();i++){ xxx xxx=list.get(i); %> <html:option value="<%=xxx.getxxx()%>"><%=xxx.getxxx()%></html:option> <%}%> </html:select>
<html:select property="xxx"> <logic:iterate id="发送过来时属性名" name="xxx" type="xx.xxx"> <option value='<bean:write name="xxx" property="属性名"/>'> <bean:write name="xxx" property="属性名"/> </option> </logic:iterate> </html:select>