开发者

Tiles is not passing form:errors to jsp in spring mvc

开发者 https://www.devze.com 2023-03-30 15:06 出处:网络
So apparently when going through tiles view resolver the binding result gets lost anddoesnt work in spring mvc.

So apparently when going through tiles view resolver the binding result gets lost and doesnt work in spring mvc.

e.g. even though (result.hasErrors()>0), the error objects are not passed to the model when going through tiles. Is this a know bug i开发者_开发知识库n tiles/spring?


I'm using it and it works fine. Just ensure that your form:errors tag is under your form:form tag or if not ensure that they use the same "commandName" as your BindingResult object (and use spring tag in your tiles view).

0

精彩评论

暂无评论...
验证码 换一张
取 消