@RequestMapping(method = RequestMethod.POST)
    public ModelAndView menuListe(HttpServletRequest request,
            ModelMap model,
            @ModelAttribute("user") User u,
            @RequestParam(required = false, value = "userid") String userId) {
        System.out.println("in post");
        String vue = Consts.INDEX_VUE;
        if (isLoged(request)) {
            if (request.getParameter("setadmin") != null) {
                vue = Consts.MAIN_PAGE_VUE;
                System.out.println("set admin");
                // il faut etre un admin pour setter un autre user comme admin
                if (isSessionUserAdmin(request)) {
                    u = (User) hUser.selectOne(u.getNom()); // oui c'est tres tordu ... va etre modifié
                    if (u.isAdmin()) {
                        model.addAttribute(Consts.MSG, Errors.getErrorMsg("u05"));
                    } else {
                        u.setAdmin();
                        hUser.save(u);
                    }
                } else {
                    model.addAttribute(Consts.MSG, Errors.getErrorMsg("u04"));
                }
                model.addAttribute(Consts.SEARCH_FORM, getSearchForm(request));
            }
        } else if (request.getParameter("login") != null) {
            String login, password;
            login = request.getParameter("username");
            password = request.getParameter("password");
            System.out.println("username " + login);

            String errorId = hUser.login(login, password);
            if (Errors.IsOk(errorId)) {
                vue = Consts.MAIN_PAGE_VUE;
                u = (User) hUser.selectOne(login);
                //  model.addAttribute("user", u);
                this.connect(u, request); // place current user dans session
                model.addAttribute(Consts.SEARCH_FORM, getSearchForm(request));
            } else {
                vue = Consts.LOGIN_VUE;
                model.addAttribute(Consts.MSG, Errors.getErrorMsg(errorId));
            }
        } else if (request.getParameter("userAdded") != null) {
            if (u == null) {
                System.out.println("go index");
            } else {
                String errorId = hUser.userExist(u.getNom());
                if (Errors.IsOk(errorId)) {
                    hUser.save(u);
                    model.addAttribute(Consts.MSG, Errors.getErrorMsg("u00"));
                } else {
                    vue = Consts.NEW_USER_VUE;
                    model.addAttribute(Consts.MSG, Errors.getErrorMsg(errorId));
                    model.addAttribute(Consts.USER, new User());
                }
            }
        }
        return new ModelAndView(vue, Consts.MODEL, model);
    }