1// In the controller, you need to add the object as an attribute of the model:
2 model.addAttribute("login", new Login());
3// Like this:
4@RequestMapping(value = "/", method = RequestMethod.GET)
5public String displayLogin(Model model) {
6 model.addAttribute("login", new Login());
7 return "login";
8}