summaryrefslogtreecommitdiffstats
path: root/WebContent/WEB-INF
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-22 17:02:23 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-23 15:57:23 +0100
commit25ae0a23d15383df7f84ad51ee8f078c519ed963 (patch)
treefb5978df15648f4af58631939c58b5e1a5c6b0d4 /WebContent/WEB-INF
parentdf8c8d8eaa3fd74b2f6a76341611555ee6d8834d (diff)
downloadJCatalog-25ae0a23d15383df7f84ad51ee8f078c519ed963.tar.gz
JCatalog-25ae0a23d15383df7f84ad51ee8f078c519ed963.zip
Get it to run on newest versions
Diffstat (limited to 'WebContent/WEB-INF')
-rw-r--r--WebContent/WEB-INF/faces-config.xml211
-rw-r--r--WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jarbin0 -> 985603 bytes
-rw-r--r--WebContent/WEB-INF/web.xml8
3 files changed, 2 insertions, 217 deletions
diff --git a/WebContent/WEB-INF/faces-config.xml b/WebContent/WEB-INF/faces-config.xml
deleted file mode 100644
index 06265ca..0000000
--- a/WebContent/WEB-INF/faces-config.xml
+++ /dev/null
@@ -1,211 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE faces-config PUBLIC
- "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
-
-<faces-config>
-
-<managed-bean>
- <managed-bean-name>UserManager</managed-bean-name>
- <managed-bean-class>beans.UserManager</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
-</managed-bean>
-
-<managed-bean>
- <managed-bean-name>CategoryManager</managed-bean-name>
- <managed-bean-class>beans.CategoryManager</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
-</managed-bean>
-
-<managed-bean>
- <managed-bean-name>ContactManager</managed-bean-name>
- <managed-bean-class>beans.ContactManager</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
-</managed-bean>
-
-<managed-bean>
- <managed-bean-name>ProductManager</managed-bean-name>
- <managed-bean-class>beans.ProductManager</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
-</managed-bean>
-
-<navigation-rule>
-
- <from-view-id>/pages/home.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<navigation-rule>
-
- <from-view-id>/pages/login.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>failure</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>success</from-outcome>
- <to-view-id>/pages/greeting.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-
-<navigation-rule>
-
- <from-view-id>/pages/categories.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>select</from-outcome>
- <to-view-id>/pages/products.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<navigation-rule>
-
- <from-view-id>/pages/greeting.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>home</from-outcome>
- <to-view-id>/pages/home.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<navigation-rule>
-
- <from-view-id>/pages/contact.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<navigation-rule>
-
- <from-view-id>/pages/products.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<navigation-rule>
-
- <from-view-id>/pages/product.xhtml</from-view-id>
-
- <navigation-case>
- <from-outcome>products</from-outcome>
- <to-view-id>/pages/products.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>contact</from-outcome>
- <to-view-id>/pages/contact.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>categories</from-outcome>
- <to-view-id>/pages/categories.xhtml</to-view-id>
- </navigation-case>
-
- <navigation-case>
- <from-outcome>login</from-outcome>
- <to-view-id>/pages/login.xhtml</to-view-id>
- </navigation-case>
-
-</navigation-rule>
-
-<application>
-
- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
-
- <locale-config>
- <default-locale>de_DE</default-locale>
- </locale-config> </application>
-
-<factory/>
-<lifecycle/>
-
-</faces-config> \ No newline at end of file
diff --git a/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar
new file mode 100644
index 0000000..465af67
--- /dev/null
+++ b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar
Binary files differ
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
index ee62240..28e4dc6 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/WebContent/WEB-INF/web.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<description>Facelets JCatalog Application</description>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-name>facelets.FACELETS_REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
@@ -21,10 +21,6 @@
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
- <context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>true</param-value>
- </context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>