コード例 #1
0
  @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);
  }
コード例 #2
0
  @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";
  }