title: Counters in Loops in Thymeleaf
body: <p>Is there a way to do a loop in Thymeleaf without a list?</p>
  
  <p>I'd like to essentially convert this snippet to Thymeleaf:</p>
  
  <pre><code>&lt;jsp:useBean id="now" class="java.util.Date" /&gt;
  &lt;fmt:formatDate var="year" value="${now}" pattern="yyyy" /&gt;
  &lt;c:forEach var="i" begin="0" end="99"&gt;
      &lt;form:option value="${year-i}" /&gt;
  &lt;/c:forEach&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>-- Update --</p>
  
  <p>I've decided this is along the lines of how I want to do it, but I'm not sure about the springEL syntax:</p>
  
  <pre><code>&lt;option th:each="i : ${#numbers.sequence( 1, 100)}" th:value="#{ T(java.util.Date).getYear() - $i }"&gt;1&lt;/option&gt;
  </code></pre>