From 807ec1d9f4587768b2e0387bbf428eed6d86dc30 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 13 Dec 2015 23:05:16 +0100 Subject: Fix template for loggedin users --- WebContent/pages/categories.xhtml | 2 +- WebContent/pages/category.xhtml | 2 +- WebContent/pages/contact.xhtml | 2 +- WebContent/pages/greeting.xhtml | 2 +- WebContent/pages/home.xhtml | 2 +- WebContent/pages/login.xhtml | 2 +- WebContent/pages/product.xhtml | 2 +- WebContent/pages/products.xhtml | 2 +- src/beans/UserManager.java | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/WebContent/pages/categories.xhtml b/WebContent/pages/categories.xhtml index 24587fc..2e8cd0e 100644 --- a/WebContent/pages/categories.xhtml +++ b/WebContent/pages/categories.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Application diff --git a/WebContent/pages/category.xhtml b/WebContent/pages/category.xhtml index 3147efc..4a5ea10 100644 --- a/WebContent/pages/category.xhtml +++ b/WebContent/pages/category.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Application diff --git a/WebContent/pages/contact.xhtml b/WebContent/pages/contact.xhtml index 891aeed..418669e 100644 --- a/WebContent/pages/contact.xhtml +++ b/WebContent/pages/contact.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Application diff --git a/WebContent/pages/greeting.xhtml b/WebContent/pages/greeting.xhtml index cbeb5d0..ce3ec7f 100644 --- a/WebContent/pages/greeting.xhtml +++ b/WebContent/pages/greeting.xhtml @@ -5,7 +5,7 @@ xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> - + JCatalog Welcome diff --git a/WebContent/pages/home.xhtml b/WebContent/pages/home.xhtml index c54e7dd..5e2cb12 100644 --- a/WebContent/pages/home.xhtml +++ b/WebContent/pages/home.xhtml @@ -9,7 +9,7 @@ - + JCatalog Application diff --git a/WebContent/pages/login.xhtml b/WebContent/pages/login.xhtml index 87d425c..e1eaa6d 100644 --- a/WebContent/pages/login.xhtml +++ b/WebContent/pages/login.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Login diff --git a/WebContent/pages/product.xhtml b/WebContent/pages/product.xhtml index 8859026..84b49f6 100644 --- a/WebContent/pages/product.xhtml +++ b/WebContent/pages/product.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Application diff --git a/WebContent/pages/products.xhtml b/WebContent/pages/products.xhtml index 1fb7f95..1b5e5e4 100644 --- a/WebContent/pages/products.xhtml +++ b/WebContent/pages/products.xhtml @@ -6,7 +6,7 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + JCatalog Application diff --git a/src/beans/UserManager.java b/src/beans/UserManager.java index 36fd807..3f38be6 100644 --- a/src/beans/UserManager.java +++ b/src/beans/UserManager.java @@ -37,7 +37,7 @@ public class UserManager public String login() { - String outcome = "failure"; + String outcome = "login"; if (current.getUsername() != null && current.getUsername().length() > 0 && current.getPassword() != null && current.getPassword().length() > 0) @@ -54,7 +54,7 @@ public class UserManager { loggedIn = true; current = (User) results.get(0); - outcome = "success"; + outcome = "greeting"; } manager.close(); -- cgit v1.2.3-70-g09d2