if (bindResult.hasErrors())
return "admin/ajoutUser";
else {
Classe classe = manager.getClasseById(formAjout.getClasseId());
User user = null;
Discipline dis = null;
if (formAjout.getRoleNom().startsWith("prof")) {
dis = new Discipline(formAjout.getDisciplineId(),
formAjout.getDisciplineNom());
}
if (formAjout.getRoleNom().equals("prof-intervenant")
|| formAjout.getRoleNom().equals("admin"))
classe = null;