Displaying Spring MVC validation errors in Freemarker templates
I'm trying to display a list of global validation errors in my freemarker template if a controller returns binding errors. I can display errors that are associated with a field, but I want to detect when an error has occurred within a specific bean and display a message at the top of the page. I've tried using the example below which produces no output: <@spring.bind "webPage" /> .... <#if spring.status.error> There were problems with the data you entered: <ul> <#list spring.status.errorMessages as error> <li>${error?html}</li> </#list> </ul> </#if> The line below always returns 0, despite