Axel Nordh il y a 1 an
Parent
commit
b119f1f517
2 fichiers modifiés avec 18 ajouts et 8 suppressions
  1. 5 0
      OddsStrategyWeb/pom.xml
  2. 13 8
      OddsStrategyWeb/src/main/webapp/WEB-INF/web.xml

+ 5 - 0
OddsStrategyWeb/pom.xml

@@ -35,6 +35,11 @@
             <artifactId>wicket-core</artifactId>
             <version>10.0.0</version>
         </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>javax.servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
     <repositories>
         <repository>

+ 13 - 8
OddsStrategyWeb/src/main/webapp/WEB-INF/web.xml

@@ -1,20 +1,25 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app
-        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
-        "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
+         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
+         version="3.1">
 
-<web-app>
-    <display-name>Wicket Examples</display-name>
     <filter>
-        <filter-name>MainApplication</filter-name>
+        <filter-name>wicket.filter</filter-name>
         <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
         <init-param>
             <param-name>applicationClassName</param-name>
             <param-value>main.java.MainApplication</param-value>
         </init-param>
+        <init-param>
+            <param-name>filterMappingUrlPattern</param-name>
+            <param-value>/*</param-value>
+        </init-param>
     </filter>
+
     <filter-mapping>
-        <filter-name>MainApplication</filter-name>
+        <filter-name>wicket.filter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
+
 </web-app>