String nomp = "nomP";
String nomBat = "nombat";
String numLog = "numLog";
String IDSP = "Identif";
// int IDSP = 0;
Sportif sp = new Sportif();
//SportifDAO conP = new SportifDAO();
SportifDAO Spdao = new SportifDAO(dataSource);
try {
// SportifDAO sportifDAO = SportifDAO.getInstance(dataSource);
// IDSP = getIntParameter(request, "noEtud", "Numéro de sportif incorrect");
//IDSP = Integer.parseInt(request.getParameter(idsp));
sp.setNomSportif(request.getParameter(nomSp));
sp.setPrenomSportif(request.getParameter(prenomSp));
// sp.setDateNaissance(request.getParameter(DateNais));
sp.setSexeSportif(request.getParameter(sexe));
// //sp.setDateInscription(request.getParameter(DateInsc));
sp.setNomPays(request.getParameter(nomp));
sp.setNomBatiment(request.getParameter(nomBat));
sp.setNumLogement(Integer.parseInt(request.getParameter(numLog)));
// //sp.setNumLogement(1);
//transformer les carateres de l'identifiant en int
int idsp = Integer.parseInt(request.getParameter(IDSP));
sp.setIdSportif(idsp);
Spdao.supprimerSportif(sp);
// Sportif sp = (Sportif) Session.getAttribute("Sportif");
// SportifDAO Spdao = new SportifDAO(dataSource);