This commit is contained in:
@@ -196,6 +196,19 @@ public class PompierMySql {
|
||||
resultQ.getInt("grade"),
|
||||
resultQ.getString("commentaire")
|
||||
);
|
||||
|
||||
switch(resultQ.getInt("statut")){
|
||||
case 1:
|
||||
setResultat("Pompier");
|
||||
break;
|
||||
case 2:
|
||||
setResultat("Chef");
|
||||
break;
|
||||
case 3:
|
||||
setResultat("Alerte");
|
||||
break;
|
||||
}
|
||||
|
||||
HttpSession maSession = request.getSession();
|
||||
maSession.setAttribute("lePompier", lePompier);
|
||||
}
|
||||
@@ -206,4 +219,8 @@ public class PompierMySql {
|
||||
return resultat;
|
||||
}
|
||||
|
||||
private void setResultat(String pompier) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user