adding all of botlist, initial add
[botlist.git] / openbotlist / WEB-INF / web.xml
blob25f3a331e830ade354dced02113668ee48ae0c1c
1 <?xml version="1.0" encoding="ISO-8859-1"?>\r
2 \r
3 <web-app version="2.4" \r
4         xmlns="http://java.sun.com/xml/ns/j2ee" \r
5         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \r
6         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee \r
7         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">\r
8                         \r
9         <!-- Context Configuration locations for Spring XML files -->\r
10     <context-param>\r
11         <param-name>contextConfigLocation</param-name>\r
12         <param-value>/WEB-INF/spring-botlist-util.xml,/WEB-INF/botlistings-servlet.xml,/WEB-INF/applicationContext-*.xml</param-value>\r
13     </context-param>\r
14                         
15         <!-- *************************************** -->\r
16         <!-- ============= Filters ================= -->        
17         <!-- *************************************** -->
18         <filter>
19                 <filter-name>LiftFilter</filter-name>
20                 <filter-class>net.liftweb.http.LiftFilter</filter-class>
21         </filter>
22         \r
23         <filter>\r
24         <filter-name>Acegi Filter Chain Proxy</filter-name>\r
25         <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>\r
26         <init-param>\r
27             <param-name>targetClass</param-name>\r
28             <param-value>org.acegisecurity.util.FilterChainProxy</param-value>\r
29         </init-param>\r
30         </filter>\r
31         <filter>\r
32         <filter-name>BotListHomeFilter</filter-name>\r
33         <filter-class>org.spirit.servlet.filters.BotListHomeFilter</filter-class>\r
34         </filter>
35         
36         <filter>
37                 <filter-name>BotListSpringCleanFilter</filter-name>
38                 <filter-class>org.spirit.util.BotListSpringCleanFilter</filter-class>
39         </filter>
40         \r
41         <filter-mapping>\r
42       <filter-name>Acegi Filter Chain Proxy</filter-name>\r
43       <url-pattern>/botlistadmin/*</url-pattern>\r
44     </filter-mapping>
45     
46         <!-- *************************************** -->
47         <!-- == LiftWeb Based Applications -->
48         <!-- == Date Created: 12/29/2007   -->
49         <!-- *************************************** -->
50     <filter-mapping>
51                 <filter-name>LiftFilter</filter-name>
52                 <url-pattern>/lift/*</url-pattern>
53         </filter-mapping>
54     
55         <filter-mapping>
56       <filter-name>BotListSpringCleanFilter</filter-name>
57       <url-pattern>/*</url-pattern>
58     </filter-mapping>
59     <!-- *************************************** -->\r
60     <!-- ============= End Filters ============= -->
61         <!-- *************************************** -->\r
62     \r
63         <listener>\r
64                 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>\r
65         </listener>
66         <listener>
67                 <listener-class>org.spirit.spring.BotListUserSessionListener</listener-class>
68         </listener>\r
69                                                 \r
70         <servlet>\r
71                 <servlet-name>botlistings</servlet-name>\r
72                 <servlet-class>\r
73                         org.springframework.web.servlet.DispatcherServlet\r
74                 </servlet-class>\r
75                 <load-on-startup>2</load-on-startup>\r
76         </servlet>\r
77         \r
78         <servlet>\r
79                 <servlet-name>DayStatChart</servlet-name>\r
80                 <servlet-class>\r
81                         org.spirit.servlet.chart.DayStatChart\r
82                 </servlet-class>\r
83                 <load-on-startup>3</load-on-startup>\r
84         </servlet>\r
85         <!--\r
86                 - Maps the dispatcher to /example/*. All handler mappings in\r
87                 - example-servlet.xml will by default be applied to this subpath.\r
88                 - If a mapping isn't a /* subpath, the handler mappings are considered\r
89                 - relative to the web app root.\r
90                 -\r
91                 - A single dispatcher could get mapped to multiple paths, like any servlet.\r
92         -->\r
93         <servlet-mapping>\r
94                 <servlet-name>botlistings</servlet-name>\r
95                 <url-pattern>*.html</url-pattern>\r
96         </servlet-mapping>\r
97         <servlet-mapping>\r
98                 <servlet-name>botlistings</servlet-name>\r
99                 <url-pattern>/index.jsp</url-pattern>\r
100         </servlet-mapping>
101         <!-- Removed Stat Chart due to performance issues\r
102         <servlet-mapping>\r
103                 <servlet-name>DayStatChart</servlet-name>\r
104                 <url-pattern>/dayStatChart.png</url-pattern>\r
105         </servlet-mapping>      
106          -->\r
108         <welcome-file-list>\r
109                 <welcome-file>index.jsp</welcome-file>\r
110         </welcome-file-list>\r
111         \r
112         <!-- *************************************** -->\r
113         <!--  TAGLIBS defined -->\r
114         <!-- *************************************** -->\r
115         <taglib>\r
116                 <taglib-uri>/spring</taglib-uri>\r
117                 <taglib-location>/WEB-INF/spring.tld</taglib-location>\r
118         </taglib>\r
119         \r
120         <taglib>\r
121                 <taglib-uri>/botlistutil</taglib-uri>\r
122                 <taglib-location>/WEB-INF/botlistutil.tld</taglib-location>\r
123         </taglib>
124         
125         <!-- *************************************** -->
126         <!--  Handle error codes with the following page -->
127         <!-- *************************************** -->
128         <!-- 
129         <error-page> 
130                 <error-code>404</error-code>
131                 <location>/defaulterror.jsp</location>
132         </error-page>
133         <error-page> 
134                 <error-code>500</error-code>
135                 <location>/defaulterror.jsp</location>
136         </error-page>
137          -->\r
138         
139         <!-- *************************************** -->
140         <!--  End of Web.xml  -->
141         <!-- *************************************** -->\r
142 </web-app>\r