option menu에서 selected 표시하기 위한 코드
<th>Service Status</th> <td> <select id="svcStatus" name ="svcStatus"> <c:forEach items="${svcStatusList}" var="svcStatus" varStatus="status"> <option value="${status.count}" <c:if test="${status.count == xmsCompanyInfo.serviceStatus}"> selected </c:if> > ${svcStatus} </option> </c:forEach> </select> </td> |
어렵네..
jsp