1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| protected Map<String, Object> referenceData(HttpServletRequest request) throws Exception {
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("utilisateurs", domainService.getUtilisateurs());
return map;
}
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
// On ajoute l'utilisateur à la base de données
UtilisateurRecherche ur = (UtilisateurRecherche)command;
List<Utilisateur> utils = domainService.rechercheUtilisateurs(ur);
// On redirige l'utilisateur sur la page de gestion des utilisateurs
return new ModelAndView("redirect:/secure/gestion-utilisateurs.html");
}
protected Object formBackingObject(HttpServletRequest request) throws Exception {
return new UtilisateurRecherche();
} |
Partager