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

changeset 109
2e0669e814ff
parent 96
b7b685f31e39
child 115
c27638a50c92
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Thu Oct 08 18:28:16 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Thu Oct 08 20:16:47 2020 +0200
@@ -39,7 +39,7 @@
 <%-- Define an alias for the main menu --%>
 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
 
-<%-- Define an alias for the main menu --%>
+<%-- Define an alias for the navigation menu --%>
 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/>
 
 <%-- Define an alias for the content page name --%>
@@ -86,9 +86,7 @@
 <div>
     <c:if test="${not empty navMenu}">
         <div id="sideMenu">
-            <c:forEach var="menu" items="${navMenu}">
-                <%@include file="../jspf/menu-entry.jsp" %>
-            </c:forEach>
+            <c:import url="${navMenu}"/>
         </div>
     </c:if>
     <div id="content-area" <c:if test="${not empty navMenu}">class="sidebar-spacing"</c:if>>

mercurial