projet jakarta chap5
This commit is contained in:
47
web/WEB-INF/accueilVue.jsp
Normal file
47
web/WEB-INF/accueilVue.jsp
Normal file
@@ -0,0 +1,47 @@
|
||||
<%--
|
||||
Document : accueilJSP
|
||||
Created on : 9 sept. 2024, 12:32:01
|
||||
Author : famille Thevenot
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
|
||||
<!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 écrites avec JakartaEE</p>
|
||||
Bienvenue, ${empty param.ztPseudo ? "Veuillez-vous authentifier" :param.ztPseudo }
|
||||
pseudo=${param.ztPseudo}
|
||||
coucou ! ${empty param.ztMDP? "Veuillez-vous authentifier" :param.ztPseudo }
|
||||
<% String unPseudo = request.getParameter("ztPseudo");
|
||||
if (unPseudo != null){
|
||||
|
||||
Boolean controle=(Boolean) request.getAttribute("controlForm");
|
||||
|
||||
if (controle) out.println("Vous êtes l'administrateur");
|
||||
}
|
||||
else
|
||||
{
|
||||
%>
|
||||
|
||||
|
||||
<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>
|
||||
<%}%>
|
||||
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user