@RequestMapping(value = "/register", method = RequestMethod.GET) public void register(HttpSession session, Model model) { HashMap<String, String> defaultParam = CommonBuilder.CommonSetter(session); defaultParam = CommonBuilder.MenuSetter(defaultParam, "Login", "", ""); model.addAllAttributes(defaultParam); }
@RequestMapping(value = "/login") public String login( @RequestParam(defaultValue = "wait") String result, HttpSession session, Model model) { HashMap<String, String> defaultParam = CommonBuilder.CommonSetter(session); defaultParam = CommonBuilder.MenuSetter(defaultParam, "Login", "", ""); model.addAllAttributes(defaultParam); model.addAttribute("result", result); return "/session/loginForm"; }