• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping between form and entity  RSS feed

 
Rancher
Posts: 268
6
Java MySQL Database Spring
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!