From f826e7bf3a5a9044375f8a384459fbe3e31ee265 Mon Sep 17 00:00:00 2001 From: ulrich Date: Fri, 01 Jan 2021 15:16:17 +0000 Subject: [PATCH] MdServlet und ViewServlet wieder von DefaultServlet abgeleitet (evtl. noch umbauen wie das AdocServlet) --- src/de/uhilger/wbx/web/ViewServlet.java | 3 ++- src/de/uhilger/wbx/web/MdServlet.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/uhilger/wbx/web/MdServlet.java b/src/de/uhilger/wbx/web/MdServlet.java index 5f37d01..4ea70c2 100644 --- a/src/de/uhilger/wbx/web/MdServlet.java +++ b/src/de/uhilger/wbx/web/MdServlet.java @@ -28,6 +28,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.catalina.servlets.DefaultServlet; /** * Das MdServlet fügt dem DefaultServlet von Tomcat @@ -43,7 +44,7 @@ * * TODO: Stylesheets dynamisch einbinden */ -public class MdServlet extends HttpServlet { +public class MdServlet extends DefaultServlet { private static final Logger logger = Logger.getLogger(MdServlet.class.getName()); private static final String HOME_CTX = "/home"; diff --git a/src/de/uhilger/wbx/web/ViewServlet.java b/src/de/uhilger/wbx/web/ViewServlet.java index 0ef8485..1c92f6b 100644 --- a/src/de/uhilger/wbx/web/ViewServlet.java +++ b/src/de/uhilger/wbx/web/ViewServlet.java @@ -29,6 +29,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.catalina.servlets.DefaultServlet; /** * Das ViewServlet fügt dem DefaultServlet von Tomcat @@ -39,7 +40,7 @@ * * TODO: Stylesheets dynamisch einbinden */ -public class ViewServlet extends HttpServlet { +public class ViewServlet extends DefaultServlet { private static final Logger logger = Logger.getLogger(ViewServlet.class.getName()); private static final String HOME_CTX = "/home"; -- Gitblit v1.9.3