summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-16 10:29:28 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-16 10:29:28 +0100
commit6df322a7475686908bb7634fdfab85182f46d336 (patch)
treebbd2f0953c89a8c545d572021332789d5f658477 /WebContent
parentbe337434a721178cc3efeb468e873b571855b605 (diff)
downloadFIT-master.tar.gz
FIT-master.zip
Use jsp:useBean with the Account objectHEADmaster
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/LoginSuccess.jsp3
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