Add Session.html and lombok, change property access into field access to lombok.

Tested add Session to user, add method UtilisateurDAO.addToSession

Please rerun
mvn clean install
This commit is contained in:
Vu Tuan Minh
2025-09-26 01:25:55 +02:00
parent 2f4d87c487
commit b9d8925f1a
15 changed files with 161 additions and 249 deletions

View File

@@ -1,10 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<body>
<form action="QuizzInfo" method="POST">
<h1>Creer session</h1>
Theme Session : <INPUT type="text" name="theme" size="20"><BR>
<INPUT type="submit" value="Creer Quizz"></INPUT>
</form>
</body>
<body>
<h1>Creer une session</h1>
<form action="SessionInfo" method="POST">
<input type="hidden" name="action" value="createSession">
Theme: <input type="text" name="theme">
<input type="submit" value="Creer Session">
</form>
</body>
</html>

View File

@@ -1,10 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<body>
<FORM Method="POST" Action="/UserInfo">
<h1>Creer l'utilisateur</h1>
<FORM Method="POST" Action="UserInfo">
<input type="hidden" name="action" value="addUser">
Name : <INPUT type="text" size="20" name="name"><BR>
Email : <INPUT type="text" size="20" name="email"><BR>
<INPUT type="submit" value="Send">
</FORM>
<h1>Ajouter utilisateur dans une session</h1>
<form action="UserInfo" method="POST">
<input type="hidden" name="action" value="addSession">
ID Session: <input type="number" name="sessionId"><br>
ID Utilisateur: <input type="number" name="userId"><br>
<input type="submit" value="Ajouter">
</form>
</body>
</html>

View File

@@ -6,7 +6,7 @@
</head>
<body>
<h1>Hello World!</h1>
<a href =http://localhost:8080/myform.html>myform</a>
<a href =http://localhost:8080/UserInfo.html>myform</a>
<a href =http://localhost:8080/Quizz.html>Quizz</a>
<a href =Show>show</a>