Spring MVC 3 Validation annotations - Confirm email?

May you should have look at this question and its answers : there are many ways discussed how to do a such a validation (it is about password and password confirm, but the problem is the same).

May you should have look at this question and its answers: there are many ways discussed how to do a such a validation (it is about password and password confirm, but the problem is the same).

1 I'm using an implementation based on that FieldMatch validator and it works great. – digitaljoel Oct 17 at 19:01 I took a look at the page, and there are some really good resources there. One thing I can't figure out is how to associate the result of a class-level constraint to a specific field of my form.

If the emails don't match, I would like my jsp to output the error as an error of the emailConf field. I am currently outputting errors using springs form:errors tag: – Steve Oct 17 at 22:51 Thanks for the resource. The custom FieldMatch annotation seems like a good way to do it.

I also was able to get scriptassert working for my needs, but my code was a little messy getting the error to bind to the appropriate form field. In the end, I just ditched annotations and went with a custom validator class. If I had more time I would have experimented with these other solutions.

Thanks! – Steve Oct 21 at 20:55.

What you need is a "Class-level constraint" (as described by JSR-303) if you want to compare 2 field of the same class. I don't think your @Expression will work that way.

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


Thank You!
send