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

changeset 109
2e0669e814ff
parent 106
9c6ebf67afe9
child 130
7ef369744fd1
equal deleted inserted replaced
108:6657dad897ea 109:2e0669e814ff
228 } 228 }
229 229
230 /** 230 /**
231 * Sets the navigation menu. 231 * Sets the navigation menu.
232 * 232 *
233 * @param req the servlet request object 233 * @param req the servlet request object
234 * @param navigationItems the menu entries for the navigation menu 234 * @param jspName the name of the menu's jsp file
235 * @see Constants#REQ_ATTR_NAVIGATION 235 * @see Constants#REQ_ATTR_NAVIGATION
236 */ 236 */
237 protected void setNavigationMenu(HttpServletRequest req, List<MenuEntry> navigationItems) { 237 protected void setNavigationMenu(HttpServletRequest req, String jspName) {
238 req.setAttribute(Constants.REQ_ATTR_NAVIGATION, navigationItems); 238 req.setAttribute(Constants.REQ_ATTR_NAVIGATION, Functions.jspPath(jspName));
239 } 239 }
240 240
241 /** 241 /**
242 * @param req the servlet request object 242 * @param req the servlet request object
243 * @param location the location where to redirect 243 * @param location the location where to redirect

mercurial