title: Spring-Boot: Redirect and Refresh model and page
body: <p>I have a spring-boot application, with theyemleaf. I repeatedly update the page, and redirect it to the same page, so i expect that the elements of the page get updated:</p>
  
  <pre><code>@GetMapping("/suggested-events/vote/{eventId}")         
  public String voteForEvents(Model model,
                              @PathVariable("eventId") Long eventId,
                              @RequestParam(value = "message", required = false) String message ) {
      log.info("The message is: "+message);
      SuggestedEvent event = suggestedEventService.findSuggestedEventById(eventId);
      ArrayList&lt;SuggestedEvent&gt; events = suggestedEventService.findSuggestedEventsByArea(event.getArea());
      model.addAttribute("mainEvent",event);
      model.addAttribute("events",events);
      model.addAttribute("message",message);
  
      return "/suggested-event/vote";
  }
  </code></pre>
  
  <p>and when a button get pushed in the view it triggers the below post method:</p>
  
  <pre><code>@PostMapping("/suggested-events/vote")
  public String voteForASuggestedEvent(RedirectAttributes redirectAttributes){
      log.info("You have made a vote");
      redirectAttributes.addAttribute("message", "Success");
  
      return "redirect:/suggested-events/vote/1";
  }
  </code></pre>
  
  <p>This second controller method, performs an operation an makes a <code>message</code>, and redirects it to the first method. So, it successfully redirected to the first method and it logs</p>
  
  <pre><code>log.info("The message is: "+message);
  </code></pre>
  
  <p>but it does not refresh my page, and <strong>i do not get the message as model</strong>?</p>
  
  <p>When i redirect to the first method, i expect it adds the <code>message</code> to my models:</p>
  
  <pre><code>model.addAttribute("message",message);
  </code></pre>
  
  <p>But it does not added to my page</p>