hi jerry,

As you suggested, I have tried the following in my handler,

public ModelAndView newcontactHandler(HttpServletRequest request, HttpServletResponse response, Contact contact)
{
try
{
ServletRequestDataBinder binder = createBinder(request, contact);
BindingResult errors = binder.getBindingResult();
if (errors.hasErrors())
{
return new ModelAndView("addcontact");
}

phoneBook.addNewContact(contact);
return new ModelAndView("add-success");
}
catch(Exception expObj)
{
System.out.println(expObj);
return new ModelAndView("add-fail");
}
}

Am I did the one that u have said?

I am ending up with the same error,
----------------------------------------------------------------
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBinding Result: 2 errors
Field error in object 'command' on field 'contactName': rejected value []; codes [contactName.emptyerror.command.contactName,contact Name.emptyerror.contactName,contactName.emptyerror .java.lang.String,contactName.emptyerror]; arguments []; default message [Contact Name should not be Empty!]
Field error in object 'command' on field 'phoneNumber': rejected value []; codes [phoneNumber.emptyerror.command.phoneNumber,phoneNu mber.emptyerror.phoneNumber,phoneNumber.emptyerror .java.lang.String,phoneNumber.emptyerror]; arguments []; default message [Phone Number should not be Empty!]
----------------------------------------------------------------------