Total students: 0 Generated: 01.01.2025 + Add Student
No students found.
ID Name Course Score Grade Actions
IT000 Student Name Course 0 A Detail

Key Thymeleaf attributes used on this page:


<!-- Iteration with status variable -->
<tr th:each="student, stat : ${students}"
    th:classappend="${stat.even} ? 'row-even' : 'row-odd'">

    <!-- Text output -->
    <td th:text="${student.id}">IT000</td>

    <!-- Conditional CSS class -->
    <td th:text="${student.grade}"
        th:classappend="${student.grade >= 90} ? 'score-high' : 'score-low'">

    <!-- URL with path variable -->
    <a th:href="@{/html/student/{id}(id=${student.id})}">Detail</a>
</tr>