In my form, first user enters customer number and if the customer exists in the database, customer data
should be displayed on the screen. Else error msg should be displayed to user saying that entered
customer doesn't exist in DB. Customer can edit the data and save it in DB or delete customer.
Once the data is successfully saved to DB, I should show message to user that customer is added successfully
to Db.
For this, I have a form with MultiactionController and methodname resolver. In my method getCustomerData() I am
receiving the Custmer data from CustomerService in customer Object, setting Customer as command object
and displaying it on getCustomerInfo.jsp. How do I send back the message to the form if the customer
doesn't exist in the DB.

How do I set up the Errors obj and use the errors object in jsp to send the msg back to form if the errors
occur while saving the record to DB?

My Controller:
public ModelAndView saveCustomer(HttpServletRequest request, HttpServletResponse response, Customer customer
throws ServletException, IOException {

...
customerService.saveCustomer(customer);
..
return new ModelAndView("getCustomer","customer ", customer);

}