]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/web.xml
78c62db097cb394c560c99d4c02363d4c93ae20a
[pizzaservice-war.git] / web / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
3     <context-param>
4         <description>Full-qualified back class name, must implement DatabaseBackend interface</description>
5         <param-name>database.backend.class</param-name>
6         <param-value>org.mxchange.jcore.database.backend.base64.Base64CsvDatabaseBackend</param-value>
7     </context-param>
8     <context-param>
9         <description>Login name for MySQL database, mostly not root</description>
10         <param-name>database.mysql.login</param-name>
11         <param-value>root</param-value>
12     </context-param>
13     <context-param>
14         <description>Password for above login, an empty password can be archived by setting a space</description>
15         <param-name>database.mysql.password</param-name>
16         <param-value>root</param-value>
17     </context-param>
18     <context-param>
19         <description>Hostname or IP address for MySQL server</description>
20         <param-name>database.mysql.host</param-name>
21         <param-value>localhost</param-value>
22     </context-param>
23     <context-param>
24         <description>Name of MySQL catalog</description>
25         <param-name>database.mysql.dbname</param-name>
26         <param-value>test</param-value>
27     </context-param>
28     <context-param>
29         <description>Data path for file-based database backends. This must be a relative path and it will reside 2 levels up from the server's web path.</description>
30         <param-name>database.backend.storagepath</param-name>
31         <param-value>data</param-value>
32     </context-param>
33     <filter>
34         <description>A servlet filter for setting character encoding to UTF-8</description>
35         <filter-name>Utf8ServletFilter</filter-name>
36         <filter-class>org.mxchange.pizzaapplication.filter.servlet.utf8.Utf8ServletFilter</filter-class>
37     </filter>
38     <filter>
39         <description>A filter for handling added basket items</description>
40         <filter-name>BasketItemAddedFilter</filter-name>
41         <filter-class>org.mxchange.pizzaapplication.filter.servlet.basket.BasketItemAddedFilter</filter-class>
42     </filter>
43     <filter-mapping>
44         <filter-name>BasketItemAddedFilter</filter-name>
45         <url-pattern>/form_handler/add_item.jsp</url-pattern>
46     </filter-mapping>
47     <filter-mapping>
48         <filter-name>Utf8ServletFilter</filter-name>
49         <url-pattern>/*</url-pattern>
50     </filter-mapping>
51     <session-config>
52         <session-timeout>
53             30
54         </session-timeout>
55     </session-config>
56     <welcome-file-list>
57         <welcome-file>index.jsp</welcome-file>
58     </welcome-file-list>
59 </web-app>