Thursday, December 15, 2005

Contextual Validation

I found this blog about "where the validation should take place".
I always felt that the validation belongs to the domain.
I think that the best solution would be to have one/several validation rules, in the domain,
which are used by the controllers.

Also Martin Fowler blogs about it, and check the Hibernate Validator.

No comments: