title: How to send data to a redirected URL spring mvc
body: <p>I have an URL which redirects to another URL when called. I would like to pass some data along with the redirection.</p>
  
  <p>For example I have this method:</p>
  
  <pre><code>@RequestMapping("efetuaEnvioEmail")
      public String efetuaEnvioEmail(HttpServletResponse response) throws IOException {
          System.out.println("efetuaEnvioEmail");
          return "redirect:inicio";
      }
  </code></pre>
  
  <p>Which redirects to this one:</p>
  
  <pre><code>@RequestMapping("inicio")
      public String Inicio(HttpServletRequest request) throws IOException {
  
          return "Inicio";
      }
  </code></pre>
  
  <p>I would like to pass some data informing that everything went fine on the first method.</p>
  
  <p>I have tried some methods of HttpServletRequest and HttpServletResponse but I couldn't have anything.</p>