1: List遍历
<html:select property="magazineClassid">
<html:option value="-2" >请选择</html:option>
<c:if test="${magazineClassList!=null}">
<logic:iterate id="item" name="magazineClassList">
<option value="${item.id }" <c:if test="${magazineClassid==item.id }">selected</c:if> >${item.lanmuname}</option>
</logic:iterate>
</c:if>
</html:select>
2: Map遍历
<html:select property="directSeedClassid">
<html:option value="-2" >请选择</html:option>
<c:if test="${directSeedClassMap!=null}">
<logic:iterate id="list" name="directSeedClassMap">
<option value="${list.key }" <c:if test="${directSeedClassid==list.key }">selected</c:if>>${list.value}</option>
</logic:iterate>
</c:if>
</html:select>
3:
<html:select property="comAdTypeid">
<html:option value="-2" >请选择</html:option>
<c:if test="${comAdTypeList!=null}">
<html:optionsCollection name="comAdTypeList" label="typeName" value="id"/>
</c:if>
</html:select>
<html:select property="magazineClassid">
<html:option value="-2" >请选择</html:option>
<c:if test="${magazineClassList!=null}">
<logic:iterate id="item" name="magazineClassList">
<option value="${item.id }" <c:if test="${magazineClassid==item.id }">selected</c:if> >${item.lanmuname}</option>
</logic:iterate>
</c:if>
</html:select>
2: Map遍历
<html:select property="directSeedClassid">
<html:option value="-2" >请选择</html:option>
<c:if test="${directSeedClassMap!=null}">
<logic:iterate id="list" name="directSeedClassMap">
<option value="${list.key }" <c:if test="${directSeedClassid==list.key }">selected</c:if>>${list.value}</option>
</logic:iterate>
</c:if>
</html:select>
3:
<html:select property="comAdTypeid">
<html:option value="-2" >请选择</html:option>
<c:if test="${comAdTypeList!=null}">
<html:optionsCollection name="comAdTypeList" label="typeName" value="id"/>
</c:if>
</html:select>