From: Roland Haeder Date: Wed, 7 Oct 2015 10:30:57 +0000 (+0200) Subject: This business method should better return a redirection target X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90a9ca76e2794cbcc0349dc73b0f6ee565aaf3e7;p=jfinancials-war.git This business method should better return a redirection target Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java index 7c22e547..afacfbf9 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java @@ -77,7 +77,7 @@ public class UserLoginWebBean implements UserLoginWebController { } @Override - public void doLogin () { + public String doLogin () { // Get user instance User user = this.userController.createUserInstance(); @@ -91,6 +91,9 @@ public class UserLoginWebBean implements UserLoginWebController { // Throw again throw new FaceletException(ex); } + + // All fine + return "login"; //NOI18N } @Override diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java index f02bae1b..1e807a64 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java @@ -28,8 +28,10 @@ public interface UserLoginWebController extends Serializable { /** * Logins the user, if the account is found, confirmed and unlocked. + *

+ * @return Redirect target */ - public void doLogin (); + public String doLogin (); /** * Getter for logged-in user instance