SDIS4/web/WEB-INF/accueilJSP.jsp
clementine.desrucques a9dec9bae4
2021-10-21 16:23:58 +02:00

31 lines
1.0 KiB
Plaintext

<%--
Document : accueilJSP
Created on : 18 oct. 2021, 10:56:46
Author : clementine.desrucques
--%>
<%@include file = "jspf/enteteJSPF.jspf" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.test.forms.AuthentifForm" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<fieldset>
<legend>Authentification</legend>
<form method="POST" action="Authentification">
<input type="text" name="ztPseudo" placeholder="Pseudo" /><br /><!-- comment -->
<input type="password" name="ztMDP" placeholder="Mot de passe" /><br /><br />
<input type="submit" value="Valider" />
</form>
</fieldset>
<!-- Si l'utilisateur s'est authentifié,
Affichage du message contenu dans l'objet controlForm de type AuthentifForm -->
<p>${controlForm.getResultat()}</p>
<br />
<c:when test="${controlForm.getResultat()=='Chef'}">
<c:redirect url="ChefCaserne"></c:redirect>
</c:when>
<c:when test="${controlForm.getResultat()=='Pompier'}">
<c:redirect url="Pompier"></c:redirect>
</c:when>