Add page to show track details.
[demoscenemusic.git] / src / main / webapp / WEB-INF / web.xml.template
1 <?xml version="1.0" encoding="utf-8"?>
2 <web-app>
3
4         <display-name>DemosceneMusic</display-name>
5         <description>Database for all demoscene music</description>
6
7         <listener>
8                 <description>Listener for context-related events</description>
9                 <listener-class>net.pterodactylus.demoscenemusic.core.Core</listener-class>
10         </listener>
11
12         <context-param>
13                 <description>The directory where the streaming files (MP3, Vorbis, etc.) are stored.</description>
14                 <param-name>storage.streamed</param-name>
15                 <param-value>/var/lib/demoscene-music/streamed</param-value>
16         </context-param>
17
18         <context-param>
19                 <description>The directory where the original files (binaries, SID files, MOD files, etc.) are stored.</description>
20                 <param-name>storage.original</param-name>
21                 <param-value>/var/lib/demoscene-music/original</param-value>
22         </context-param>
23
24         <resource-ref>
25                 <description>DB Connection</description>
26                 <res-ref-name>jdbc/demosceneMusic</res-ref-name>
27                 <res-type>javax.sql.DataSource</res-type>
28                 <res-auth>Container</res-auth>
29         </resource-ref>
30
31         <servlet>
32                 <servlet-name>TemplateServlet</servlet-name>
33                 <servlet-class>net.pterodactylus.demoscenemusic.core.TemplateServlet</servlet-class>
34                 <init-param>
35                         <param-name>artist</param-name>
36                         <param-value>net.pterodactylus.demoscenemusic.page.ArtistPage</param-value>
37                 </init-param>
38                 <init-param>
39                         <param-name>artists</param-name>
40                         <param-value>net.pterodactylus.demoscenemusic.page.ArtistsPage</param-value>
41                 </init-param>
42                 <init-param>
43                         <param-name>track</param-name>
44                         <param-value>net.pterodactylus.demoscenemusic.page.TrackPage</param-value>
45                 </init-param>
46                 <load-on-startup>0</load-on-startup>
47         </servlet>
48
49         <servlet-mapping>
50                 <servlet-name>TemplateServlet</servlet-name>
51                 <url-pattern>/*</url-pattern>
52         </servlet-mapping>
53
54 </web-app>