开发者

Tiles is not passing form:errors to jsp 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜