Announcement Announcement Module
No announcement yet.
spring:bind doubt Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring:bind doubt

    Hi. I have a SimpleFormController. In its formBackingObject() method, I populate a customer bean, and then the view (a jsp) gets rendered.
    But, in the ViewCustomer.jsp, I don't use <spring:bind>, i just use plain useBean:

    <jsp:useBean id="customer" class="xxxx" scope="request">
    <jsp:setProperty name="client" property="*" />

    And it works!. When I hit submit, the bean of the Controller also gets the modified values of the form.
    So the question is.. what is <spring:bind> for then? Or am I missing something?

  • #2
    You can use it to render any errors associated if validation fails. It has a number of uses, but you don't *need* to use it.