Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Andras Madi-Szabo
Added: May 19, 2020 11:19 AM
Modified: May 19, 2020 11:19 AM
Views: 131
Tags: beci vizsga
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org" lang="en">
  3. <head>
  4.   <title>Thymeleaf Exercise #</title>
  5.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
  6.           integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
  7.   <link rel="stylesheet" th:href="@{/css/style.css}"/>
  8.   <meta charset="utf-8"/>
  9. </head>
  10. <body>
  11.  
  12. <table class="table table-hover" style="margin: 30px">
  13.   <tr style="text-transform: uppercase; font-style: italic">
  14.     <th>id</th>
  15.     <th>name</th>
  16.     <th>age</th>
  17.   </tr>
  18.   <tr th:each="user : ${users}" th:object="${user}">
  19.     <td th:text="${user.id}">id</td>
  20.     <td th:text="*{name}">name</td>
  21.     <td th:text="*{age}">age</td>
  22.   </tr>
  23. </table>
  24.  
  25. </body>
  26. </html>