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

changeset 182
53f0e2685ad5
parent 180
009700915269
--- a/src/main/java/de/uapcore/lightpit/AbstractServlet.java	Wed Jan 06 16:20:32 2021 +0100
+++ b/src/main/java/de/uapcore/lightpit/AbstractServlet.java	Wed Jan 06 16:41:09 2021 +0100
@@ -54,8 +54,6 @@
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractServlet.class);
 
-    private static final String SITE_JSP = jspPath("site");
-
     /**
      * Invocation mapping gathered from the {@link RequestMapping} annotations.
      * <p>
@@ -361,7 +359,7 @@
     }
 
     protected void renderSite(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
-        req.getRequestDispatcher(SITE_JSP).forward(req, resp);
+        req.getRequestDispatcher(jspPath("site")).forward(req, resp);
     }
 
     protected Optional<String[]> availableLanguages() {

mercurial