src/main/webapp/WEB-INF/jsp/version-form.jsp

changeset 78
bb4c52bf3439
parent 76
82f71fb1758a
child 80
27a25f32048e
--- a/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sat May 23 13:34:41 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sat May 23 13:52:04 2020 +0200
@@ -25,17 +25,14 @@
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 --%>
 <%@page pageEncoding="UTF-8" %>
-<%@page import="de.uapcore.lightpit.Constants" %>
 <%@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]}"/>
-
 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" />
 <jsp:useBean id="version" type="de.uapcore.lightpit.entities.Version" scope="request"/>
 <jsp:useBean id="versionStatusEnum" type="de.uapcore.lightpit.entities.VersionStatus[]" scope="request"/>
 
-<form action="./${moduleInfo.modulePath}/versions/commit" method="post">
+<form action="./projects/versions/commit" method="post">
     <table class="formtable" style="width: 35ch">
         <colgroup>
             <col>
@@ -83,10 +80,10 @@
                 <input type="hidden" name="id" value="${version.id}"/>
                 <c:choose>
                     <c:when test="${not empty version.project and version.project.id ge 0}">
-                        <c:set var="cancelUrl">./${moduleInfo.modulePath}/view?pid=${version.project.id}</c:set>
+                        <c:set var="cancelUrl">./projects/view?pid=${version.project.id}</c:set>
                     </c:when>
                     <c:otherwise>
-                        <c:set var="cancelUrl">./${moduleInfo.modulePath}/</c:set>
+                        <c:set var="cancelUrl">./projects/</c:set>
                     </c:otherwise>
                 </c:choose>
                 <a href="${cancelUrl}" class="button">

mercurial