Archive

Archive for the ‘Thymeleaf’ Category

Thymeleaf + print session variable on page

Use these code snippet to add session data to html/jsp page without touching ANY java code.


<h4 style="color: white;" th:text="${#ctx.httpSession.id}">SessionID </h4>

 

Advertisements
Categories: Thymeleaf