• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic