Displaying Spring MVC validation errors in Freemarker templates

前端 未结 4 1173
终归单人心
终归单人心 2021-01-06 14:29

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 f

4条回答
  •  温柔的废话
    2021-01-06 14:49

    See the documentation: http://static.springsource.org/spring/docs/current/spring-framework-reference/html/view.html#view-velocity-forms. It has an example of what you want to do.

提交回复
热议问题