Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Mapping between form and entity  RSS feed

 
Rancher
Posts: 319
6
Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form the create a new user but somehow it gets mapped wrong.
I used the same base in an other project and there it works great.

Error:


Controller:


Form:


Entity:


At first i thought the problem was I use a datetype in my form and a localdate in my entity, so I parse it in de constructor.
Then I thought maybe he makes a problem of the numbertype in my form, so I changed it to text and parse that to.
On clientside I get no error except for the whitepage and the 400.
On serverside I get:

but I think that's caused cause the server expect to get a memberobject.
I also didn't know where to post this question, but since the form isn't really jsp, I posted it here.
Any tips are welcome
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!