示例代码:
<select name="userId">
<c:forEach items="${list}" var="cpusers">
<option value="${cpusers.userId}">
${cpusers.userName}
</option>
</c:forEach>
</select>
select 与<c:forEach>结合小案例
时间: 2024-10-06 06:03:34
示例代码:
<select name="userId">
<c:forEach items="${list}" var="cpusers">
<option value="${cpusers.userId}">
${cpusers.userName}
</option>
</c:forEach>
</select>
select 与<c:forEach>结合小案例