Merge dt
# Conflicts: # src/Test.java # src/métiers/Commande.java # test/métiers/CommandeTest.java
This commit is contained in:
2
web/META-INF/context.xml
Normal file
2
web/META-INF/context.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Context path="/Test2JakartaV7-2"/>
|
43
web/WEB-INF/accueilVue.jsp
Normal file
43
web/WEB-INF/accueilVue.jsp
Normal file
@@ -0,0 +1,43 @@
|
||||
<%--
|
||||
Document : accueilJSPV6
|
||||
Created on : 9 sept. 2024, 12:32:01
|
||||
Author : famille Thevenot
|
||||
--%>
|
||||
|
||||
<%@page import="testForms.AuthentifForm"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Accueil des clients</title>
|
||||
</head>
|
||||
|
||||
<%@include file="jspf/enteteClient.jspf" %>
|
||||
<%@include file="jspf/menuClient.jspf" %>
|
||||
|
||||
<p>Bienvenue sur la nouvelle application de gestion des clients écrite avec JakartaEE</p>
|
||||
<!-- utilisation EL -->
|
||||
<c:out value="${controlForm.getResultat()}" default="Je ne sais pas encore si vous êtes administrateur, authentifiez-vous !" />
|
||||
<c:choose>
|
||||
<c:when test="${param.ztPseudo != null}" >
|
||||
<p>Bonjour ${param.ztPseudo }</p>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
<!-- Affichage formulaire si pas de pseudo -->
|
||||
<form action="authentification" method="post">
|
||||
<label for="fpseudo">Pseudo :</label>
|
||||
<input type="text" id="fpseudo" name="ztPseudo" required="required"><br><br>
|
||||
<label for="fpwd">Mot de passe :</label>
|
||||
<input type="password" id="fpwd" name="ztMDP" required="required"><br><br>
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</html>
|
||||
|
||||
|
3
web/WEB-INF/jspf/enteteClient.jspf
Normal file
3
web/WEB-INF/jspf/enteteClient.jspf
Normal file
@@ -0,0 +1,3 @@
|
||||
<%-- any content can be specified here e.g.: --%>
|
||||
<%@ page pageEncoding="UTF-8" %>
|
||||
<h1>Gestion des clients</h1>
|
10
web/WEB-INF/jspf/menuClient.jspf
Normal file
10
web/WEB-INF/jspf/menuClient.jspf
Normal file
@@ -0,0 +1,10 @@
|
||||
<%-- any content can be specified here e.g.: --%>
|
||||
<%@ page pageEncoding="UTF-8" %>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href='./'>Accueil</a></li>
|
||||
<li><a href='listeClients'>Liste des clients</a></li>
|
||||
<li><a href='nouveauClient'>Nouveau clients</a></li>
|
||||
</ul>
|
||||
</nav>
|
24
web/WEB-INF/listeClientsVue.jsp
Normal file
24
web/WEB-INF/listeClientsVue.jsp
Normal file
@@ -0,0 +1,24 @@
|
||||
<%--
|
||||
Document : listeClientsVue
|
||||
Created on : 15 sept. 2024, 18:51:03
|
||||
Author : famille Thevenot
|
||||
--%>
|
||||
|
||||
<%@page import="java.util.ArrayList"%>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Liste des clients</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="jspf/enteteClient.jspf" %>
|
||||
<%@include file="jspf/menuClient.jspf" %>
|
||||
<h2>Liste des clients</h2>
|
||||
|
||||
<c:out value="${laListe}" default="La liste doit être là" />
|
||||
|
||||
</body>
|
||||
</html>
|
40
web/WEB-INF/nouveauClientVue.jsp
Normal file
40
web/WEB-INF/nouveauClientVue.jsp
Normal file
@@ -0,0 +1,40 @@
|
||||
<%--
|
||||
Document : nouveauClientVue
|
||||
Created on : 15 sept. 2024, 18:49:28
|
||||
Author : famille Thevenot
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Nouveau client</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@include file="jspf/enteteClient.jspf" %>
|
||||
<%@include file="jspf/menuClient.jspf" %>
|
||||
<h2>Nouveau client</h2>
|
||||
|
||||
<c:choose>
|
||||
<c:when test="${isNumAjoute >0}" >
|
||||
<p>Client ${isNumAjoute} ajouté</p>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
<!-- Affichage formulaire saisie nouveau client -->
|
||||
Remplir ce formulaire pour ajouter un nouveau client :
|
||||
<form action="nouveauClient" method="post">
|
||||
<label for="fnom">Nom :</label>
|
||||
<input type="text" id="fnom" name="ztNom" required="required"><br><br>
|
||||
<label for="fprenom">Prénom :</label>
|
||||
<input type="text" id="fprenom" name="ztPrenom" required="required"><br><br>
|
||||
<label for="fmail">Courriel :</label>
|
||||
<input type="email" id="fmail" name="ztMail" ><br><br>
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</body>
|
||||
</html>
|
35
web/WEB-INF/web.xml
Normal file
35
web/WEB-INF/web.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="6.0" xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd">
|
||||
<servlet>
|
||||
<servlet-name>ListeServlet</servlet-name>
|
||||
<servlet-class>ListeServlet2</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>AccueilServlet</servlet-name>
|
||||
<servlet-class>gestionClient.AccueilServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>NouveauServlet</servlet-name>
|
||||
<servlet-class>gestionClient.NouveauServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>AuthentifServlet</servlet-name>
|
||||
<servlet-class>gestionClient.AuthentifServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>ListeServlet2</servlet-name>
|
||||
<url-pattern>/listeClients</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>AccueilServlet</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>NouveauServlet</servlet-name>
|
||||
<url-pattern>/nouveauClient</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>AuthentifServlet</servlet-name>
|
||||
<url-pattern>/authentification</url-pattern>
|
||||
</servlet-mapping>
|
||||
</web-app>
|
15
web/index.html
Normal file
15
web/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Html.html to edit this template
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>TODO supply a title</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div>TODO write content</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user