summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-09 09:37:31 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-09 10:04:19 +0100
commitc58001fdf1defd03ff30cd9c39160b03eec02434 (patch)
tree3944040b15461618a1076a09a189d87dbfd45851 /WebContent
parent886ea8362d80e8855da839a95f9539a2b199f6fe (diff)
downloadFIT-c58001fdf1defd03ff30cd9c39160b03eec02434.tar.gz
FIT-c58001fdf1defd03ff30cd9c39160b03eec02434.zip
Use JPA for storing the user accounts in a database
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/LoginFormWithJpa.jsp16
-rw-r--r--WebContent/WEB-INF/classes/lib/eclipselink-2.6.1.zipbin0 -> 32587504 bytes
-rw-r--r--WebContent/WEB-INF/lib/.gitignore1
-rw-r--r--WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jarbin0 -> 985603 bytes
-rw-r--r--WebContent/WEB-INF/web.xml4
5 files changed, 21 insertions, 0 deletions
diff --git a/WebContent/LoginFormWithJpa.jsp b/WebContent/LoginFormWithJpa.jsp
new file mode 100644
index 0000000..cf0cd3b
--- /dev/null
+++ b/WebContent/LoginFormWithJpa.jsp
@@ -0,0 +1,16 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="UTF-8"%>
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8" />
+<title>Login</title>
+</head>
+<body>
+ <form action="LoginServletWithJpa" method="post">
+ <label for="username">Username:</label><input type="text" name="username" id="username"><br>
+ <label for="password">Password:</label><input type="password" name="password" id="password"><br>
+ <input type="submit"><input type="reset">
+ </form>
+</body>
+</html> \ No newline at end of file
diff --git a/WebContent/WEB-INF/classes/lib/eclipselink-2.6.1.zip b/WebContent/WEB-INF/classes/lib/eclipselink-2.6.1.zip
new file mode 100644
index 0000000..32a7a38
--- /dev/null
+++ b/WebContent/WEB-INF/classes/lib/eclipselink-2.6.1.zip
Binary files differ
diff --git a/WebContent/WEB-INF/lib/.gitignore b/WebContent/WEB-INF/lib/.gitignore
new file mode 100644
index 0000000..f9be8df
--- /dev/null
+++ b/WebContent/WEB-INF/lib/.gitignore
@@ -0,0 +1 @@
+!*
diff --git a/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar
new file mode 100644
index 0000000..465af67
--- /dev/null
+++ b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.37-bin.jar
Binary files differ
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
index 84f418f..beedbd4 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/WebContent/WEB-INF/web.xml
@@ -21,4 +21,8 @@
<param-name>salt</param-name>
<param-value>aabbcc112233</param-value>
</context-param>
+ <context-param>
+ <param-name>persistenceUnit</param-name>
+ <param-value>FIT</param-value>
+ </context-param>
</web-app> \ No newline at end of file