Umstellung auf Thymeleaf: Zwischenschritt - Fehler in Thymeleaf umschifft
[website] / src / main / webapp / WEB-INF / web.xml
index 6a618b8..af11754 100644 (file)
@@ -11,7 +11,7 @@
   <context-param>
     <param-name>contextConfigLocation</param-name>
     <param-value>
-      /WEB-INF/spring/mvc.xml
+      classpath:/spring/mvc.xml
     </param-value>
   </context-param>
 
@@ -21,6 +21,7 @@
 
 
   <!-- UTF-8 -->
+
   <filter>
     <filter-name>characterEncodingFilter</filter-name>
     <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
   </filter-mapping>
 
 
+  <!-- Fix a logic-bug in the colaboration of Thymeleaf and Tiles -->
+
+  <filter>
+    <filter-name>forceIncludeFilter</filter-name>
+    <filter-class>de.juplo.branding.web.ForceIncludeFilter</filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>forceIncludeFilter</filter-name>
+    <url-pattern>*.html</url-pattern>
+  </filter-mapping>
+
+
   <!-- Handles all requests into the application -->
 
   <servlet>
-    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
+    <servlet-name>Dispatcher Servlet - Branding</servlet-name>
     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
     <init-param>
       <param-name>contextConfigLocation</param-name>
   </servlet>
 
   <servlet-mapping>
-    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
-    <url-pattern>*.html</url-pattern>
+    <servlet-name>Dispatcher Servlet - Branding</servlet-name>
+    <url-pattern>/</url-pattern>
   </servlet-mapping>
 
   <error-page>
     <error-code>404</error-code>
-    <location>/WEB-INF/404.jsp</location>
+    <location>/404.html</location>
+  </error-page>
+  <error-page>
+    <location>/error.html</location>
   </error-page>
 
 </web-app>