public class AddCustomerAction extends ActionSupport {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
CustomerManager customerBo = (CustomerManager) getWebApplicationContext() .getBean("customerBo");
CustomerForm customerForm = (CustomerForm) form;
Customer customer = new Customer();
BeanUtils.copyProperties(customer, customerForm);
customerBo.addCustomer(customer);
return mapping.findForward("success");
}