Neither BindingResult nor plain target object for bean name 'user' available as request attribute
Joined: Jul 14, 2011
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?
Joined: Apr 13, 2011
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: