@RequestMapping(value = "/customerForm")
    public ModelAndView showCustomerForm(HttpServletRequest request)
    {
        ModelAndView modelAndView = new ModelAndView("customerForm");
        
        String method = request.getParameter("action");
        if (method.equals("add"))
        {
            modelAndView.addObject("command", new Customer());
        }
        else if (method.equals("edit")) {
           String customerId = request.getParameter("id");
            Customer customer = getDAO().getById(Integer.parseInt(customerId));
            modelAndView.addObject("command", customer);
        }
        
        return modelAndView;
    }