title: Thymeleaf - Input Dynamic List Of String
body: <p>I want to add a dynamic list of input fields from the user. Combine those different inputs and pass them as list from the view to the controller.
  This is my domain class </p>
  
  <pre><code>public class HTMLPage {
  
      @Size(min = 3)
      @NotNull
      private List&lt;String&gt; ingredients;
      @Size(min = 5)
      @NotNull
      private List&lt;String&gt; method;
      @Size(min = 3)
      @NotNull
      private String recipeName;
      //getter setters
  
   }
  </code></pre>
  
  <p>I am completely new to thymeleaf. I have gone through all possible tutorials. There are different ways how to iterate the list but I cannot find a way to <strong>dynamically input list of strings</strong> and send the complete HTMLPage object to my controller. </p>