81,092
社区成员
发帖
与我相关
我的任务
分享
<!-- 地区 -->
<html:select property="custRegion">
<html:optionsCollection property="regions"></html:optionsCollection>
</html:select>
<html:select property="custRegion">
<html:optionsCollection property="regions"></html:optionsCollection>
</html:select>
原来只要把<html:select property="想要选定的值">就可以了,还是谢谢大家给了我这么多提示
<select name="main">
<c:forEach items="${B页面的LIST}" var="list">
<c:if test="${list.value==requestScope.VAL" var="FLAG">
<option value="${m.mainId }" selected="selected">${list.属性 }</option>
</c:if>
<c:if test="${!FLAG}">
<option value="${m.mainId }">${list.属性 }</option>
</c:if>
</c:forEach>
</select>