title: Thymeleaf construct URL with variable
body: <p>I have the following code setting a variable in my controller:</p>
  
  <pre><code>model.set("type", type);
  </code></pre>
  
  <p>In the thymeleaf view I want to construct a form with action url:</p>
  
  <pre><code>/mycontroller/{type}
  </code></pre>
  
  <p>Any ideas how to achieve this? I've read thymeleaf documentation with no luck.</p>