## if you need to display all errors (both global and all field errors,
    ## use wildcard (*) in place of the property name
    <spring:bind path="company.*">
        <c:forEach items="${status.errorMessages}" var="error">
        Error code: <c:out value="${error}"/><br>
        </c:forEach>
    </spring:bind>

解决方案 »

  1.   

    <spring:bind>标记经常用来绑定<input>表单元素以便提交给PriceIncrease.java,其实PriceIncrease.java中就是包含一些getter和setter的方法的类。当用户按下按钮提交的时候,其表单中的值实际上就被framework放到了PriceIncrease.java中。<spring:bind>经常和form一起使用.这个${status.errorMessage}和${status.value}是一个framework定义的特殊变量,它们被用来显示错误信息和当前表单中的数据。
      

  2.   

    相当于Struts里的<html>标签
      

  3.   

    需要了解spring taglib方面的东西才能了解