Add template servlet to deployment descriptor.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 06:07:51 +0000 (08:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 06:07:51 +0000 (08:07 +0200)
src/main/webapp/WEB-INF/web.xml.template

index 12eea53..090d062 100644 (file)
                <res-auth>Container</res-auth>
        </resource-ref>
 
+       <servlet>
+               <servlet-name>TemplateServlet</servlet-name>
+               <servlet-class>net.pterodactylus.demoscenemusic.core.TemplateServlet</servlet-class>
+               <init-param>
+                       <param-name>artists</param-name>
+                       <param-value>net.pterodactylus.demoscenemusic.page.ArtistsPage</param-value>
+               </init-param>
+               <load-on-startup>0</load-on-startup>
+       </servlet>
+
+       <servlet-mapping>
+               <servlet-name>TemplateServlet</servlet-name>
+               <url-pattern>/*</url-pattern>
+       </servlet-mapping>
+
 </web-app>