Announcement Announcement Module
Collapse
No announcement yet.
How I can debug a data bind error with a limited information Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How I can debug a data bind error with a limited information

    I get the following error message:

    [com.xxx.web.user.UserFormController] processFormSubmission:218 - Data binding errors: 2

    The UserFormController is a child class of the SimpleFormController. And it doesn't overload the processFormSubmission method.

    How I can do debugging with the information?

    Here are some related classess and the JSP file.

    public class UserForm {

    private User user;
    private boolean newUser;
    private String repeatedPassword;

    public UserForm(User account) {
    this.user = account;
    this.newUser = false;
    }

    public UserForm() {
    this.user = new User();
    this.newUser = true;
    }
    //...
    }

    public class User {

    private Integer id;

    private String username;
    private String password;
    private Address address;
    //...

    public User() {
    address = new Address();
    }

    // ...
    }

    public class Address implements Serializable {

    private String street1, street2, city, province, postalCode, country;
    // ...
    }

    A segment of the JSP:

    <TR bgcolor="#FFFF88">
    <TD><fmt:message key="label.postalCode"/><font color=red>*</font>:</TD>
    <TD>
    <spring:bind path="userForm.user.address.postalCode">
    <input type="text" size="10" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
    </spring:bind>
    </TD>
    </TR>
    <TR bgcolor="#FFFF88">
    <TD><fmt:message key="label.country"/><font color=red>*</font>:</TD>
    <TD>
    <spring:bind path="userForm.user.address.country">
    <input type="text" size="15" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
    </spring:bind>
    </TD>
    </TR>


    Thanks very much in advance for your kindly helps.

  • #2
    I have figure the problem out: it is a user error, but not a programming error.

    Comment

    Working...
    X