src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 109
2e0669e814ff
parent 106
9c6ebf67afe9
child 130
7ef369744fd1
--- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Thu Oct 08 18:28:16 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Thu Oct 08 20:16:47 2020 +0200
@@ -230,12 +230,12 @@
     /**
      * Sets the navigation menu.
      *
-     * @param req             the servlet request object
-     * @param navigationItems the menu entries for the navigation menu
+     * @param req     the servlet request object
+     * @param jspName the name of the menu's jsp file
      * @see Constants#REQ_ATTR_NAVIGATION
      */
-    protected void setNavigationMenu(HttpServletRequest req, List<MenuEntry> navigationItems) {
-        req.setAttribute(Constants.REQ_ATTR_NAVIGATION, navigationItems);
+    protected void setNavigationMenu(HttpServletRequest req, String jspName) {
+        req.setAttribute(Constants.REQ_ATTR_NAVIGATION, Functions.jspPath(jspName));
     }
 
     /**

mercurial