Hello,
following this tutorial
http://www.devx.com/Java/Article/22134/1954?pf=true
spring:hasBindErrors name=”credentials”>
<font color=”red”><core:out value=”${status.errorMessage}”/></font>
</spring:hasBindErrors>
when i use above code when error fires from validation.java, on jsp it displays
“${status.errorMessage}” in red color is it jstl issue or some thing else ?
————————————————————————————————–
some one replied on another forum
————————————————————————————————–
The code is wrong at least. It can be something like
<spring:hasBindErrors name=”credentials”>
<font color=”red”><ul>
<spring:bind path=”credentials”>
<c:forEach items=”${status.errorMessages}” var=”error”>
<li><c:out value=”${error}”/></li>
</c:forEach>
</spring:bind>
</ul></font>
</spring:hasBindErrors>
—————————————————————————————————
when i tried
<spring:hasBindErrors name=”useremailform”>
<font color=”red”><ul>
<spring:bind path=”useremailform”>
<core:forEach items=”${status.errorMessages}” var=”error”>
<li><core:out value=”${error}”/></li>
</core:forEach>
</spring:bind>
</ul></font>
</spring:hasBindErrors>
it prints “* ${error}” on jsp when error fires.
any idea what may be went wong ?
thanks
Faisal khan