title: Display datas in Thymeleaf
body: <p>I am using Spring MVC 3 and Thymeleaf. I want to display string in the table but there are no results (blank table cell). What am I doing wrong? My controller class:<br></p>
  
  <pre><code>@Controller
  @RequestMapping(value="table", method = RequestMethod.GET)
  public class TableController {
  @Autowired
  DaneEndpoint daneEndpoint;
  public String tabela(Model model){
  model.addAttribute("tytul", daneEndpoint.getAll().get(0));
  model.addAttribute(model);
   return "table";
      } 
   }
  </code></pre>
  
  <p><br>
  and html page (table.html):<br></p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html xmlns:th="http://www.thymeleaf.org"&gt; 
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h3 align="center"&gt;table&lt;/h3&gt; 
      &lt;div align="left"&gt;
      &lt;form action="table.html"  th:object="${tytul}" method="get"&gt;
        &lt;fieldset&gt; 
          &lt;div align="center"&gt;
          &lt;table border="1"&gt;
            &lt;thead&gt;
               &lt;tr&gt;
                 &lt;th th:text=""&gt;tytul&lt;/th&gt;
               &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
               &lt;tr&gt;
                  &lt;td th:text=""&gt;&lt;span th:text="#{table.tytul}"/&gt;&lt;/td&gt;
               &lt;/tr&gt;
            &lt;/tbody&gt;
          &lt;/table&gt; 
          &lt;/div&gt;
        &lt;/fieldset&gt;    
      &lt;/form&gt; 
      &lt;/div&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><br>Thanks for help.</p>