From 5b096f4d79e8bdf63f55114d592440b20bca8ac3 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 1 Dec 2023 05:26:38 +0100 Subject: [PATCH] Fixed FolderHook. --- src/fr/devinsy/kiss4web/dispatcher/KissDispatcherFactory.java | 2 +- src/fr/devinsy/kiss4web/dispatcher/hooks/FolderHook.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherFactory.java b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherFactory.java index 1b75068..93ef8f1 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherFactory.java +++ b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherFactory.java @@ -244,7 +244,7 @@ public class KissDispatcherFactory buffer.append(letter); } } - buffer.append(".IndexXhtml"); + buffer.append("IndexXhtml"); result = buffer.toString(); } diff --git a/src/fr/devinsy/kiss4web/dispatcher/hooks/FolderHook.java b/src/fr/devinsy/kiss4web/dispatcher/hooks/FolderHook.java index 5443fae..ba1aab9 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/hooks/FolderHook.java +++ b/src/fr/devinsy/kiss4web/dispatcher/hooks/FolderHook.java @@ -23,7 +23,7 @@ import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import fr.devinsy.kiss4web.dispatcher.KissDispatcherUtils; +import fr.devinsy.kiss4web.dispatcher.KissDispatcherFactory; import jakarta.servlet.ServletConfig; import jakarta.servlet.ServletContext; import jakarta.servlet.ServletException; @@ -78,6 +78,6 @@ public class FolderHook extends HookCore logger.debug("Doing catch."); String urlPath = request.getPathInfo(); - KissDispatcherUtils.dispatchToServlet(servletConfig, request, response, urlPath); + KissDispatcherFactory.instance().dispatchPathToServlet(servletConfig, request, response, urlPath); } }