Accessing session attributes in Thymeleaf templates

Viewed 39475

I would like to know whether is it possile to retrieve the session object and access its attributes from a Thymeleaf template without any controller code.

2 Answers

I tried this and it's working for me :

th:text="${session.user['tel']}"
Related