title: how handler mapping works in spring mvc
body: <p>I am new to spring mvc. I am debugging a mvc code as given below</p>
  
  <pre><code>@Controller
  @RequestMapping("/register")
  public class RegisterController extends BroadleafRegisterController {
  
  @RequestMapping(method=RequestMethod.GET)
  public String register(HttpServletRequest request, HttpServletResponse response, Model model,
              @ModelAttribute("registrationForm") RegisterCustomerForm registerCustomerForm) {
          return super.register(registerCustomerForm, request, response, model);
  }
  
  @RequestMapping(method=RequestMethod.POST)
  public String processRegister(HttpServletRequest request, HttpServletResponse response, Model model,
              @ModelAttribute("registrationForm") RegisterCustomerForm registerCustomerForm, BindingResult errors) throws ServiceException, PricingException {
          return super.processRegister(registerCustomerForm, errors, request, response, model);
  }
  
  @ModelAttribute("registrationForm") 
  public RegisterCustomerForm initCustomerRegistrationForm() {
  
  return super.initCustomerRegistrationForm();        
  
  }
  
  }   
  </code></pre>
  
  <p>above is a spring handler class. for /register request i was thinking regsister() method should called but before this method inintcustomerRegisterationForm() is called i do not know why and how this method is called. I searched this in google but not find any useful information. I think this is like a interceptor method as in struts2. Please tell us how this method is called</p>
  
  <p>Thanks</p>