Hi,
I wonder if anyone can help. With MVC 2.5 I am using some basic validation for my form fields. Each field in the BindingResult may or may not have validation error(s); and these are being displayed properly in my view (
jsp) because they are exposed in the errors object when I use spring:bind. IE. I am successfully doing:
No problem. But what I'd now like to do (in addition to the above) is to have a summary of errors (of all fields) at the top of the page. Something like "You have 5 errors, please correct them before proceeding"
Does anyknow know if there is a 'page' level binding that exposes an errors object for all fields on the page? Or something similar?
Or will I have to maintain a counter in my validation code and add that to the model?
Cheers
Nathan