×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: Nhan Tran
Added: Aug 7, 2021 2:02 PM
Views: 3654
Tags: no tags
  1. <jsp:useBean id="role" class="DAO.RoleDAO" />
  2.  <c:forEach items="${role.all}" var="r">
  3.  <option value="${r.id}" <c:if test="${a.role==r.id}">selected</c:if>>
  4. ${r.name}
  5. </c:forEach>