Ani BindingResult, ani zwykły obiekt docelowy dla nazwy fasoli Spring MVC
// In the controller, you need to add the object as an attribute of the model:
model.addAttribute("login", new Login());
// Like this:
@RequestMapping(value = "/", method = RequestMethod.GET)
public String displayLogin(Model model) {
model.addAttribute("login", new Login());
return "login";
}
Vishal