facebook

Spring hasbindError issue!

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270639 Reply

    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

    #270640 Reply

    header includes

    <%@ taglib prefix=”core” uri=”/WEB-INF/c-rt.tld” %>
    <%@ taglib prefix=”fmt” uri=”/WEB-INF/fmt-rt.tld” %>
    <%@ taglib prefix=”spring” uri=”/WEB-INF/spring.tld” %>

    #270667 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Spring hasbindError issue!

You must be logged in to post in the forum log in