2014年12月23日火曜日

Thymeleafで1から5までループ

Thymeleafで1から5までループする例
<select name="hoge">
  <option th:each="i : ${#numbers.sequence(1, 5)}" th:value="${i}" th:text="${i}"></option>
</select>

2014年12月9日火曜日

thymeleaf の比較演算子

関係演算子

大小比較
m<n」の場合:m &lt; n
m>n」の場合:m &gt; n
m<=n」の場合:m &le; n
m>=n」の場合:m &ge; n