"Remplissez tous les champs.");
errors.setNestedPath("");
return;
}
University u = umng.getUniversity(university);
Diplome d = dmng.getDiplomes(diplome);
if (!current.isEmpty()) {
current.setDiplome(d);
current.setUniversity(u);
folder.addPromodetail(current);
}
} else if (request.getParameter("adduniv") != null) {
String nouveau = request.getParameter("newuniv");
/*
* It is very difficult to check the validity of variable
* 'newuniv' Whe just check if 'nouveau' is not empty.
*/
if (!nouveau.equals("")) {
University university = new University();
university.setLabel(nouveau.toUpperCase());
umng.add(university);
}
} else if (request.getParameter("adddegree") != null) {
String nouveau = request.getParameter("newdegree");
/*