Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

neither bindingresult nor plain target object for bean name 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"; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bindingresult #plain #target #object #bean #spring #mvc
ADD COMMENT
Topic
Name
3+1 =