posted 9 years ago
Is it a good idea to pass the binding result object as a arg to service layer to collect service level validations from spring MVC controller methods ?
Works fine when you do it,but a cause of concern is accessing the model object define with the binding result in the service indierctly when adding errors.
Is there any other alternatives to show the service validation errors using binding result back to user but not expose the model in the service layer?
Any advice is appreciated.
Thanks