• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Neither BindingResult nor plain target object for bean name 'user' available as request attribute

 
Jeroen Nouws
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I'm trying to make a form where a new user can register by simply filling out his/her name and password
i've mapped the RequestMapping of my controller to the register root folder but when i'm trying to load my User bean to use with my form i'm getting above error.
here's the JSP with the form which is located at /JSP/register/registerform.jsp


and here's the code of my controller


the suffix and prefix of the InternalResourceViewResolver is this

anyone who can tell me where i'm doing it wrong?
 
Tommy Delson
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot of things gone wrong with your code, start from web.xml, xxx-servlet.xml, registerform.jsp , RegisterController class etc. . I'd start from fresh...

Here is a link that may help, try it and you'll understand why:


http://www.vaannila.com/spring/spring-annotation-controller-1.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic