]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/web.xml
fe867e306cca77540d014269922c474bc173bdda
[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         <context-param>
34                 <param-name>javax.faces.PROJECT_STAGE</param-name>
35                 <param-value>Development</param-value>
36         </context-param>
37         <filter>
38                 <description>A servlet filter for setting character encoding to UTF-8</description>
39                 <filter-name>Utf8ServletFilter</filter-name>
40                 <filter-class>org.mxchange.jsfcore.filter.servlet.utf8.Utf8ServletFilter</filter-class>
41         </filter>
42         <filter>
43                 <description>A servlet filter for logging</description>
44                 <filter-name>Log4jServletFilter</filter-name>
45                 <filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
46         </filter>
47         <!--
48         TODO: No longer used
49         <filter>
50                 <description>A filter for handling added basket items</description>
51                 <filter-name>BasketItemAddedFilter</filter-name>
52                 <filter-class>org.mxchange.jshop.filter.servlet.basket.BasketItemAddedFilter</filter-class>
53         </filter>
54         <filter-mapping>
55                 <filter-name>BasketItemAddedFilter</filter-name>
56                 <url-pattern>/form_handler/add_item.jsp</url-pattern>
57         </filter-mapping>
58         //-->
59         <filter-mapping>
60                 <filter-name>Log4jServletFilter</filter-name>
61                 <url-pattern>/*</url-pattern>
62         </filter-mapping>
63         <filter-mapping>
64                 <filter-name>Utf8ServletFilter</filter-name>
65                 <url-pattern>/*</url-pattern>
66         </filter-mapping>
67         <servlet>
68                 <servlet-name>Faces Servlet</servlet-name>
69                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
70                 <load-on-startup>1</load-on-startup>
71         </servlet>
72         <servlet-mapping>
73                 <servlet-name>Faces Servlet</servlet-name>
74                 <url-pattern>/faces/*</url-pattern>
75         </servlet-mapping>
76         <mime-mapping>
77                 <extension>tpl</extension>
78                 <mime-type>text/plain</mime-type>
79         </mime-mapping>
80         <session-config>
81                 <session-timeout>
82                         30
83                 </session-timeout>
84         </session-config>
85         <welcome-file-list>
86                 <welcome-file>faces/index.xhtml</welcome-file>
87                 <!--<welcome-file>index.jsp</welcome-file>-->
88         </welcome-file-list>
89 </web-app>