Iterate Spring MVC error message on jsp
If you want to Iterate Spring MVC error message on jsp please use below code where it’s using JSTL c:forEach tag to iterate all messages which has been rejected from spring MVC controller:
<c:forEach items="${errors.allErrors}" var="error"> <spring:message code="${error.code}" text="${error.defaultMessage}"/></br> </c:forEach>