title: How to send parameters from controller to view and display with thymeleaf
body: <p>I have got a really easy question about sending parameters from <code>Controller</code> to <code>View</code> with <code>thymeleaf</code>.</p>
  
  <p>I have got HTML page with line:</p>
  
  <pre><code>&lt;p th:text="${xyz}"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>When I acces page <code>http://localhost:8080/myproject-web/mypage</code> this <code>paragraph</code> is empty.</p>
  
  <p>When I click submit button it goes to controller:</p>
  
  <pre><code>@RequestMapping(value = "/subscribeth", params = { "save" })
  public String save(final MyMainObject subscription, final BindingResult bindingResult, final ModelMap model) {
              System.out.println("I am here"); // it is displayed
      model.addAttribute("xyz", "Hello");
      return "redirect:/mypage";
  }
  </code></pre>
  
  <p>So, it goes once again to <code>mypage</code> but the <code>paragraph</code> is still empty.</p>
  
  <p>About what I forgot...? Thank you in advance</p>