Using variable inside src image with Thymleaf template
<p>I developped an application using spring-boot and thymeleaf as a template
in my view I try to use a variable inside a loop but it's not worked. This is a snippet of my code:</p>

<pre><code>&lt;table &gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;Type&lt;/th&gt;
            &lt;th&gt;Résumé&lt;/th&gt;
            &lt;th&gt;Contenu&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;tr th:each="subTask  : ${lstOtherSubTasks}"&gt;
            &lt;td&gt;&lt;img th:src="@{/img/icons/${subTask.issueTypeId}.png}" title="TODO" /&gt;     // here the variable ${subTask.issueTypeId} not works
            &lt;p th:text="${subTask.issueTypeId}" /&gt;   here the value of the variable ${subTask.issueTypeId} is not null I get the good value 
            &lt;/td&gt;
            &lt;td th:text="${subTask.resume}"&gt;&lt;/td&gt;
            &lt;td th:text="${subTask.contenu}"&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>