开发者

form:errors does not show a list of errors but form:errors path="x" works

开发者 https://www.devze.com 2023-01-27 15:43 出处:网络
I\'m trying to show a complete list of my form errors. Now I can do <form:errors path=\"x\"/> a few times, but unless I\'m mistaken I should be able to just use <form:errors/>?

I'm trying to show a complete list of my form errors. Now I can do <form:errors path="x"/> a few times, but unless I'm mistaken I should be able to just use <form:errors/>? However <form:errors/> gives me no output.

Does anyone know why thi开发者_运维百科s is happening (and yes, the form:errors is within my form:form)


<form:errors/> produces errors associated with the command object itself. To get errors for all its fields you need <form:errors path = "*" />.

0

精彩评论

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