--- a/src/main/webapp/WEB-INF/jsp/project-form.jsp Sat Aug 22 16:25:03 2020 +0200 +++ b/src/main/webapp/WEB-INF/jsp/project-form.jsp Sat Aug 22 18:17:06 2020 +0200 @@ -28,8 +28,8 @@ <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -<jsp:useBean id="project" type="de.uapcore.lightpit.entities.Project" scope="request"/> -<jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> +<jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectEditView" scope="request" /> +<c:set var="project" scope="page" value="${viewmodel.project}"/> <form action="./projects/commit" method="post"> <table class="formtable"> @@ -55,7 +55,7 @@ <td> <select name="owner"> <option value="-1"><fmt:message key="placeholder.null-owner"/></option> - <c:forEach var="user" items="${users}"> + <c:forEach var="user" items="${viewmodel.users}"> <option <c:if test="${not empty project.owner and user eq project.owner}">selected</c:if> value="${user.id}"><c:out value="${user.displayname}"/></option>