]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/web.xml
More cleanups + added source path for jshop (you need to do the same)
[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.pizzaapplication.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     <filter>
48         <description>A filter for handling added basket items</description>
49         <filter-name>BasketItemAddedFilter</filter-name>
50         <filter-class>org.mxchange.pizzaapplication.filter.servlet.basket.BasketItemAddedFilter</filter-class>
51     </filter>
52     <filter-mapping>
53         <filter-name>BasketItemAddedFilter</filter-name>
54         <url-pattern>/form_handler/add_item.jsp</url-pattern>
55     </filter-mapping>
56     <filter-mapping>
57         <filter-name>Log4jServletFilter</filter-name>
58         <url-pattern>/*</url-pattern>
59     </filter-mapping>
60     <filter-mapping>
61         <filter-name>Utf8ServletFilter</filter-name>
62         <url-pattern>/*</url-pattern>
63     </filter-mapping>
64     <servlet>
65         <servlet-name>Faces Servlet</servlet-name>
66         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
67         <load-on-startup>1</load-on-startup>
68     </servlet>
69     <servlet-mapping>
70         <servlet-name>Faces Servlet</servlet-name>
71         <url-pattern>/faces/*</url-pattern>
72     </servlet-mapping>
73     <session-config>
74         <session-timeout>
75             30
76         </session-timeout>
77     </session-config>
78     <welcome-file-list>
79         <!--<welcome-file>faces/index.xhtml</welcome-file>-->
80         <welcome-file>index.jsp</welcome-file>
81     </welcome-file-list>
82 </web-app>