Thymeleaf + print session variable on page

Supun Dharmarathne
technodyne
Published in
1 min readAug 11, 2015

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

[sourcecode language=”html”]

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

[/sourcecode]

--

--