title: spring redirect not working
body: <p>Spring redirect in controller not working like return "redirect:/reservation/reservationSuccess" but return "/reservation/reservationSuccess"; is working. Why it is not working. where it went wrong. Please help.</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public String submitForm(@ModelAttribute("reservation") Reservation reservation,
                           BindingResult result, 
                           SessionStatus status, 
                           Model model) {
      validator.validate(reservation, result);
      if(result.hasErrors()) {
          model.addAttribute("reservation",reservation);
          return "reservation/reservationForm";
      }
      reservationService.make(reservation);
      status.setComplete();
      return "redirect:reservation/reservationSuccess";
  }
  </code></pre>