81,122
社区成员




*/
public class User {
private Long id;
private Integer userAge;
private String loginName;
private String userName;
private Set<Long> rolesId = new HashSet<>();
public User() {
}
//get set省略
}
<select name="rolesId[]" multiple="multiple" size="10" class="SelectStyle">
<c:if test="${! empty listRole}">
<c:forEach items="${listRole}" var="role">
<option value="${role.id}">${role.roleName }</option>
</c:forEach>
</c:if>
</select>