Howto display validation errors in freemarker template?

I'm not familiar with FreeMarker, but I see your BindingResult is not associated with the model. You need to add it to the signature of your method right after the corresponding model attribute.

I'm not familiar with FreeMarker, but I see your BindingResult is not associated with the model. You need to add it to the signature of your method right after the corresponding model attribute: @RequestMapping( value = "/add", method = RequestMethod. POST ) public String addUser( @RequestParam(value="isAdmin",defaultValue="false") Boolean isAdmin, @RequestParam(value="passVerification" ) String passVerification, @ModelAttribute("user") C_UserDAO newUser, BindingResult errors ) { ... }.

Thank you for your fast answer, but I can't test this code today. I will try it the next time i'll be @work. – lofthouses Oct 6 '10 at 15:38 I tested your hint and it works!

Thanks again :) If I could, I would vote you up ;) – lofthouses Oct 12 '10 at 8:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions