I am trying to use breakpoints using eclipse but its not working. Here is the project debugging overview

[![Eclipse Spring Project Display](https://i.stack.imgur.com/2NtpQ.png)](https://i.stack.imgur.com/2NtpQ.png)

Code

```
@RequestMapping(value = "/login", method=RequestMethod.POST)
    public ModelAndView loginvalidateForm(ModelMap model, @Valid @ModelAttribute("loginForm") Login login, BindingResult result, HttpSession session) {

        if(result.hasErrors()){
            model.addAttribute("result", "All Fields are neccessary");
            return new ModelAndView("index",model);
        }
        if(emp_service.validateLogin(login.getUsername(), login.getPassword()))
        {
            List<Employee> user_info = emp_service.getUserinfo(login.getUsername());
            session.setAttribute("session_username", login.getUsername()); //Add value to session variable
            model.addAttribute("result", "Login Success");
            model.addAttribute("user_info", user_info);
            return new ModelAndView("LoginSuccess",model);
        }
        else
        {
            model.addAttribute("result", "Login Failure");
            return new ModelAndView("index",model);     
        }
    }

```

I put a break point at this line `if(result.hasErrors()){`, so when I click on login button, it should stop at the above line but it doesnt stops there. Why it is not working here?