src/main/webapp/WEB-INF/jsp/projects.jsp

changeset 78
bb4c52bf3439
parent 74
91d1fc2a3a14
child 81
1a2e7b5d48f7
--- a/src/main/webapp/WEB-INF/jsp/projects.jsp	Sat May 23 13:34:41 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/projects.jsp	Sat May 23 13:52:04 2020 +0200
@@ -25,12 +25,10 @@
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 --%>
 <%@page pageEncoding="UTF-8" %>
-<%@page import="de.uapcore.lightpit.Constants" %>
 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
-<c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
 
 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request"/>
@@ -42,7 +40,7 @@
 </c:if>
 
 <div id="tool-area">
-    <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create"/></a>
+    <a href="./projects/edit" class="button"><fmt:message key="button.create"/></a>
 </div>
 
 <c:if test="${not empty projects}">
@@ -66,8 +64,8 @@
         <tbody>
         <c:forEach var="project" items="${projects}">
             <tr class="nowrap">
-                <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td>
-                <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a>
+                <td style="width: 2em;"><a href="./projects/edit?id=${project.id}">&#x270e;</a></td>
+                <td><a href="./projects/view?pid=${project.id}"><c:out value="${project.name}"/></a>
                 </td>
                 <td><c:out value="${project.description}"/></td>
                 <td>

mercurial