Author: ehillenius
Date: Thu Jan 25 18:02:27 2007
New Revision: 500091

URL: http://svn.apache.org/viewvc?view=rev&rev=500091
Log:
changed to filter

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket-quickstart/src/main/webapp/WEB-INF/web.xml
    incubator/wicket/trunk/wicket-quickstart/src/webapp/WEB-INF/web.xml

Modified: 
incubator/wicket/branches/wicket-1.x/wicket-quickstart/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-quickstart/src/main/webapp/WEB-INF/web.xml?view=diff&rev=500091&r1=500090&r2=500091
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket-quickstart/src/main/webapp/WEB-INF/web.xml
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket-quickstart/src/main/webapp/WEB-INF/web.xml
 Thu Jan 25 18:02:27 2007
@@ -35,20 +35,23 @@
          <param-name>configuration</param-name>
          <param-value>development</param-value>
        </context-param>
- 
-    <servlet>
-        <servlet-name>quickstart</servlet-name>
-        <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
-        <init-param>
-          <param-name>applicationClassName</param-name>
-          <param-value>wicket.quickstart.QuickStartApplication</param-value>
-        </init-param>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
 
-    <servlet-mapping>
-        <servlet-name>quickstart</servlet-name>
-        <url-pattern>/app/*</url-pattern>
-    </servlet-mapping>
+       <filter>
+               <filter-name>quickstart</filter-name>
+               <filter-class>wicket.protocol.http.WicketFilter</filter-class>
+               <init-param>
+                 <param-name>applicationClassName</param-name>
+                 
<param-value>wicket.quickstart.QuickStartApplication</param-value>
+               </init-param>
+               <init-param>
+                 <param-name>filterPath</param-name>
+                 <param-value>app</param-value>
+               </init-param>
+       </filter>
+
+       <filter-mapping>
+               <filter-name>quickstart</filter-name>
+               <url-pattern>/app/*</url-pattern>
+       </filter-mapping>
 
 </web-app>

Modified: incubator/wicket/trunk/wicket-quickstart/src/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-quickstart/src/webapp/WEB-INF/web.xml?view=diff&rev=500091&r1=500090&r2=500091
==============================================================================
--- incubator/wicket/trunk/wicket-quickstart/src/webapp/WEB-INF/web.xml 
(original)
+++ incubator/wicket/trunk/wicket-quickstart/src/webapp/WEB-INF/web.xml Thu Jan 
25 18:02:27 2007
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <!DOCTYPE web-app
       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
       "http://java.sun.com/dtd/web-app_2_3.dtd";>
@@ -19,20 +35,23 @@
          <param-name>configuration</param-name>
          <param-value>development</param-value>
        </context-param>
- 
-    <servlet>
-        <servlet-name>quickstart</servlet-name>
-        <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
-        <init-param>
-          <param-name>applicationClassName</param-name>
-          <param-value>wicket.quickstart.QuickStartApplication</param-value>
-        </init-param>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
-
-    <servlet-mapping>
-        <servlet-name>quickstart</servlet-name>
-        <url-pattern>/app/*</url-pattern>
-    </servlet-mapping>
+
+       <filter>
+               <filter-name>quickstart</filter-name>
+               <filter-class>wicket.protocol.http.WicketFilter</filter-class>
+               <init-param>
+                 <param-name>applicationClassName</param-name>
+                 
<param-value>wicket.quickstart.QuickStartApplication</param-value>
+               </init-param>
+               <init-param>
+                 <param-name>filterPath</param-name>
+                 <param-value>app</param-value>
+               </init-param>
+       </filter>
+
+       <filter-mapping>
+               <filter-name>quickstart</filter-name>
+               <url-pattern>/app/*</url-pattern>
+       </filter-mapping>
 
 </web-app>


Reply via email to