]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/web.xml
needs to be called this way ...
[pizzaservice-war.git] / web / WEB-INF / web.xml
index da05191b4f2913161c5e5a07f5e1b57bcebfbfa9..0e403f6c1f1dbc66954486a3a7bf0aa157eeb8b2 100644 (file)
@@ -1,82 +1,36 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <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">
-    <context-param>
-        <description>Full-qualified back class name, must implement DatabaseBackend interface</description>
-        <param-name>database.backend.class</param-name>
-        <param-value>org.mxchange.jcore.database.backend.base64.Base64CsvDatabaseBackend</param-value>
-    </context-param>
-    <context-param>
-        <description>Login name for MySQL database, mostly not root</description>
-        <param-name>database.mysql.login</param-name>
-        <param-value>root</param-value>
-    </context-param>
-    <context-param>
-        <description>Password for above login, an empty password can be archived by setting a space</description>
-        <param-name>database.mysql.password</param-name>
-        <param-value>root</param-value>
-    </context-param>
-    <context-param>
-        <description>Hostname or IP address for MySQL server</description>
-        <param-name>database.mysql.host</param-name>
-        <param-value>localhost</param-value>
-    </context-param>
-    <context-param>
-        <description>Name of MySQL catalog</description>
-        <param-name>database.mysql.dbname</param-name>
-        <param-value>test</param-value>
-    </context-param>
-    <context-param>
-        <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>
-        <param-name>database.backend.storagepath</param-name>
-        <param-value>data</param-value>
-    </context-param>
-    <context-param>
-        <param-name>javax.faces.PROJECT_STAGE</param-name>
-        <param-value>Development</param-value>
-    </context-param>
-    <filter>
-        <description>A servlet filter for setting character encoding to UTF-8</description>
-        <filter-name>Utf8ServletFilter</filter-name>
-        <filter-class>org.mxchange.jsfcore.filter.servlet.utf8.Utf8ServletFilter</filter-class>
-    </filter>
-    <filter>
-        <description>A servlet filter for logging</description>
-        <filter-name>Log4jServletFilter</filter-name>
-        <filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
-    </filter>
-    <filter>
-        <description>A filter for handling added basket items</description>
-        <filter-name>BasketItemAddedFilter</filter-name>
-        <filter-class>org.mxchange.jshop.filter.servlet.basket.BasketItemAddedFilter</filter-class>
-    </filter>
-    <filter-mapping>
-        <filter-name>BasketItemAddedFilter</filter-name>
-        <url-pattern>/form_handler/add_item.jsp</url-pattern>
-    </filter-mapping>
-    <filter-mapping>
-        <filter-name>Log4jServletFilter</filter-name>
-        <url-pattern>/*</url-pattern>
-    </filter-mapping>
-    <filter-mapping>
-        <filter-name>Utf8ServletFilter</filter-name>
-        <url-pattern>/*</url-pattern>
-    </filter-mapping>
-    <servlet>
-        <servlet-name>Faces Servlet</servlet-name>
-        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
-        <load-on-startup>1</load-on-startup>
-    </servlet>
-    <servlet-mapping>
-        <servlet-name>Faces Servlet</servlet-name>
-        <url-pattern>/faces/*</url-pattern>
-    </servlet-mapping>
-    <session-config>
-        <session-timeout>
-            30
-        </session-timeout>
-    </session-config>
-    <welcome-file-list>
-        <welcome-file>faces/index.xhtml</welcome-file>
-        <!--<welcome-file>index.jsp</welcome-file>-->
-    </welcome-file-list>
+       <context-param>
+               <param-name>javax.faces.PROJECT_STAGE</param-name>
+               <param-value>Development</param-value>
+       </context-param>
+       <servlet>
+               <servlet-name>Faces Servlet</servlet-name>
+               <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+               <load-on-startup>1</load-on-startup>
+       </servlet>
+       <servlet>
+               <servlet-name>pdf</servlet-name>
+               <servlet-class>org.mxchange.pizzaapplication.servlet.receipt.PdfReceiptServlet</servlet-class>
+       </servlet>
+       <servlet-mapping>
+               <servlet-name>Faces Servlet</servlet-name>
+               <url-pattern>/faces/*</url-pattern>
+       </servlet-mapping>
+       <mime-mapping>
+               <extension>tpl</extension>
+               <mime-type>text/plain</mime-type>
+       </mime-mapping>
+       <servlet-mapping>
+               <servlet-name>pdf</servlet-name>
+               <url-pattern>/customer/recipt.pdf</url-pattern>
+       </servlet-mapping>
+       <session-config>
+               <session-timeout>
+                       30
+               </session-timeout>
+       </session-config>
+       <welcome-file-list>
+               <welcome-file>faces/index.xhtml</welcome-file>
+       </welcome-file-list>
 </web-app>