| Author |
Neither BindingResult nor plain target object for bean name 'user' available as request attribute
|
Jeroen Nouws
Greenhorn
Joined: Jul 14, 2011
Posts: 17
|
|
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
Joined: Apr 13, 2011
Posts: 206
|
|
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
|
OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
|
 |
 |
|
|
subject: Neither BindingResult nor plain target object for bean name 'user' available as request attribute
|
|
|