title: Spring + Thymeleaf - Call a function using received parameter
body: <p>I have a table filled with a List of String that I receive from a controller, and then I want to put a button for each one to call to another function and get some objects related with that string.</p>
  
  <pre><code>&lt;tbody th:each="titulo : ${listaColecciones}"&gt;
      &lt;tr&gt;
          &lt;th th:utext="${titulo}"&gt;&lt;/th&gt;
          &lt;th&gt;
          &lt;form class="navbar-form navbar-left" action="#" th:action="@{/twittercontrolador/recuperarColeccion}" th:object="${textocoleccion}" th:value="${titulo}" method="post"&gt;        
              &lt;button type="submit" class="btn btn-primary" value="Filtrar"&gt;Recuperar coleccion&lt;/button&gt;
          &lt;/form&gt;
          &lt;/th&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>But it seems not to work, it doesn't get the ${titulo} as a parameter for the function</p>
  
  <p>Edit: Here I have a picture of what I'm trying to do:
  <a href="https://i.stack.imgur.com/1IQqv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1IQqv.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see, I get a List (Thre're database table names) in the controller from a method1, and I pass that list to the view. 
  There, I'm trying to put a table with 2 columns, first is the string/table name, and second is a button to call a second method which will return the objects in that table.</p>
  
  <p>So, as you may suppose, the <code>&lt;tbody th:each="titulo : ${listaColecciones}"&gt;</code>is the list of database table names.</p>
  
  <pre><code>&lt;th th:utext="${titulo}"&gt;&lt;/th&gt;  
  </code></pre>
  
  <p>The names to know which table are you getting from the database</p>
  
  <pre><code>&lt;form class="navbar-form navbar-left" action="#" th:action="@{/twittercontrolador/recuperarColeccion}" th:object="${textocoleccion}" th:value="${titulo}" method="post"&gt;      
              &lt;button type="submit" class="btn btn-primary" value="Filtrar"&gt;Recuperar coleccion&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>And here is where I'm getting the problems, the button. <code>th:action="@{/twittercontrolador/recuperarColeccion}"</code> is the second method in the controller and I don't know how to pass it the string (<code>${titulo}</code>) as a parameter for it.</p>
  
  <p>Note that <code>th:object="${textocoleccion}"</code>is the name of the string I will receive in the second method but I can not set it to the value of the strings.</p>