}
errors.setNestedPath("");
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");
/*
* It is very difficult to check the validity of variable
* 'newdegree' Whe just check if 'nouveau' is not empty.
*/
if (!nouveau.equals("")) {
Diplome diplome = new Diplome();
diplome.setLabel(nouveau.toUpperCase());
dmng.add(diplome);
}
} else if (delete != null) {
int index = Integer.parseInt(delete);