diff options
Diffstat (limited to 'src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java')
| -rw-r--r-- | src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java b/src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java index 68ea34a..a877dc2 100644 --- a/src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java +++ b/src/de/fhswf/in/inf/fit/aufgabe6/LoginServletWithJpaAndJsp.java @@ -8,7 +8,6 @@ import java.util.Base64; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; -import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; @@ -71,10 +70,7 @@ public class LoginServletWithJpaAndJsp extends HttpServlet { request.getSession().setAttribute("username", account.getUsername()); - RequestDispatcher dispatcher = getServletContext() - .getRequestDispatcher("/LoginSuccess.jsp"); - - dispatcher.forward(request, response); + response.sendRedirect("LoginSuccess.jsp"); } else { |
