• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping between form and entity  RSS feed

 
Rancher
Posts: 299
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
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!