Slim3 JSP‎ > ‎

errors

This function returns an iterator for error messages.
For example:
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<ul>
<c:forEach var="e" items="${f:errors()}">
<li>${f:h(e)}</li>
</c:forEach>
</ul>

The result:
<ul>
<li>title is required.</li>
<li>content is required.</li>
</ul>

See demo(Edit page) and sample source.

Comments