]> git.mxchange.org Git - addressbook-war.git/commitdiff
updated web.xml
authorRoland Häder <roland@mxchange.org>
Wed, 21 Jun 2017 18:21:56 +0000 (20:21 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 21 Jun 2017 18:21:56 +0000 (20:21 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/web.xml

index c4bad6d5a3cd36990c183c40c6462aad6dab4952..4fda8dedbe1de4b9ff1fbc0fc05f6758d45447ae 100644 (file)
@@ -2,6 +2,11 @@
 <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
     <description>An online address book application to share private and business memebers between all members. It is also possible that the user's profile can be made visible to outside.</description>
     <display-name>Addressbook Application v1.0</display-name>
+    <context-param>
+        <description>Project stage.</description>
+        <param-name>javax.faces.PROJECT_STAGE</param-name>
+        <param-value>Development</param-value>
+    </context-param>
     <context-param>
         <description>Whether the date converter's default timezone is system's timezone.</description>
         <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
@@ -25,7 +30,7 @@
     <context-param>
         <description>Whether registration page is enabled.</description>
         <param-name>is_feature_user_registration_enabled</param-name>
-        <param-value>false</param-value>
+        <param-value>true</param-value>
     </context-param>
     <context-param>
         <description>Whether the guest menu is enabled/shown to the user.</description>
@@ -35,7 +40,7 @@
     <context-param>
         <description>Whether recovery of user passwords is enabled.</description>
         <param-name>is_feature_user_password_recovery_enabled</param-name>
-        <param-value>false</param-value>
+        <param-value>true</param-value>
     </context-param>
     <context-param>
         <description>Wether the personal title is required for using the general contact controller.</description>
     <context-param>
         <description>Whether personal title is required for administrative contact controller.</description>
         <param-name>is_feature_admin_personal_title_enabled</param-name>
-        <param-value>false</param-value>
+        <param-value>true</param-value>
     </context-param>
     <context-param>
         <description>Whether users are allowed to edit their user data.</description>
         <param-name>is_feature_user_edit_data_enabled</param-name>
-        <param-value>false</param-value>
+        <param-value>true</param-value>
     </context-param>
     <context-param>
         <description>Whether the user list is accessible and visible.</description>
         <param-name>is_feature_user_list_enabled</param-name>
-        <param-value>false</param-value>
+        <param-value>true</param-value>
     </context-param>
     <context-param>
         <description>Whether imprint page is enabled.</description>
@@ -73,7 +78,7 @@
         <param-value>true</param-value>
     </context-param>
     <context-param>
-        <description>Whether users must change password after login (with current password). Administrators can enforce this.</description>
+        <description>Feature: Users must change password after login (with current password). Administrators can enforce this.</description>
         <param-name>is_feature_user_must_change_password_enabled</param-name>
         <param-value>true</param-value>
     </context-param>
         <param-value>false</param-value>
     </context-param>
     <context-param>
-        <description>Whether the can change email address.</description>
-        <param-name>is_feature_user_change_email_address_enabled</param-name>
-        <param-value>true</param-value>
+        <description>Maximum passwords that must be different.</description>
+        <param-name>max_user_password_history</param-name>
+        <param-value>5</param-value>
+    </context-param>
+    <context-param>
+        <description>Whether debugging of registration form is enabled.</description>
+        <param-name>is_debug_register_enabled</param-name>
+        <param-value>false</param-value>
     </context-param>
     <context-param>
         <description>Whether the public user profile is enabled. If this option is enabled, the setting "is_user_name_required" must also be enabled as it is mandadory.</description>
         <param-name>min_user_password_score</param-name>
         <param-value>50</param-value>
     </context-param>
-    <context-param>
-        <description>Maximum passwords that must be different.</description>
-        <param-name>max_user_password_history</param-name>
-        <param-value>5</param-value>
-    </context-param>
-    <context-param>
-        <description>Whether debugging of registration form is enabled.</description>
-        <param-name>is_debug_register_enabled</param-name>
-        <param-value>false</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.PizzaPdfReceiptServlet</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>
-        <cookie-config>
-            <http-only>true</http-only>
-        </cookie-config>
     </session-config>
     <welcome-file-list>
         <welcome-file>faces/index.xhtml</welcome-file>
         <display-name>AdminConstraint</display-name>
         <web-resource-collection>
             <web-resource-name>admin</web-resource-name>
-            <description>Administrative area</description>
+            <description>Administrative Area</description>
             <url-pattern>/faces/admin/*</url-pattern>
         </web-resource-collection>
         <auth-constraint>
-            <description>Admin authentication</description>
+            <description>Administrative Area Login</description>
             <role-name>admin</role-name>
         </auth-constraint>
     </security-constraint>
-    <mime-mapping>
-        <extension>tpl</extension>
-        <mime-type>text/plain</mime-type>
-    </mime-mapping>
     <login-config>
         <auth-method>BASIC</auth-method>
         <realm-name>file</realm-name>
     </login-config>
     <security-role>
-        <description>Administrativre rule</description>
+        <description>Administrative role</description>
         <role-name>admin</role-name>
     </security-role>
 </web-app>