/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package form; import bdd.GradeMySQL; import bdd.PompierMySQL; import bdd.StatutMySQL; import bdd.TypePersoMySQL; import bdd.TrancheMySQL; import beans.Pompier; import beans.Statut; import beans.TypePers; import beans.Grade; import beans.Tranche; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpSession; import java.util.ArrayList; import util.CtrlSaisie; /** * * @author noobm */ public class EditionForm { String message; HttpServletRequest request; public EditionForm(HttpServletRequest request) { this.request = request; } public boolean ctrlEdition() { request.removeAttribute("message"); String[] champsObligatoires = {"username", "password",}; if (!CtrlSaisie.CtrlChampsObligatoires(request, champsObligatoires)) { return false; } // Vérification absence de chevron if (!CtrlSaisie.CtrlChevron(request)) { return false; } return true; } }