spring mvc list all error without

<spring:bind path=”cc.*”>
    <div>
    <table>
  <c:forEach items=”${status.errors.allErrors}” var=”error”>
    <tr>
     <td>${error.field }</td>
     <td style=”color: #888;”>${error.code}</td>
    </tr>
  </c:forEach>
  </table>      
    </div>
</spring:bind>

where “cc” is the model attribute name.

Inside the <spring:bind> tag,

  • status – object of org.springframework.web.servlet.support.BindStatus
  • status.errors – object of org.springframework.validation.Errors

57 comments to spring mvc list all error without

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>