diff options
Diffstat (limited to 'WebContent/LoginSuccess.jsp')
| -rw-r--r-- | WebContent/LoginSuccess.jsp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebContent/LoginSuccess.jsp b/WebContent/LoginSuccess.jsp index e144166..32255f0 100644 --- a/WebContent/LoginSuccess.jsp +++ b/WebContent/LoginSuccess.jsp @@ -1,5 +1,6 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<jsp:useBean id="user" class="de.fhswf.in.inf.fit.aufgabe5.model.Account" scope="session"/> <!DOCTYPE html> <html> <head> @@ -7,7 +8,7 @@ <title>Welcome</title> </head> <body> - <h1>Welcome <%= session.getAttribute("username") %></h1> + <h1>Welcome <jsp:getProperty property="username" name="user"/> </h1> <a href="LoginFormWithJpaAndJsp.jsp">Retry</a> </body> </html>
\ No newline at end of file |
