31 lines
740 B
HTML
31 lines
740 B
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<!-- https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#fragment-specification-syntax -->
|
|
</head>
|
|
<body>
|
|
|
|
<h5>Thymeleaf Session Info</h5>
|
|
<pre>
|
|
<kbd>${session.foo}</kbd> // Retrieves the session atttribute 'foo'
|
|
<kbd>${session.size()}</kbd>
|
|
<kbd>${session.isEmpty()}</kbd>
|
|
<kbd>${session.containsKey('foo')}</kbd>
|
|
</pre>
|
|
|
|
<h5>Thymeleaf Principal Info</h5>
|
|
<pre>
|
|
<kbd>${#authentication.principal}</kbd>
|
|
</pre>
|
|
|
|
<h5>Thymeleaf Session ID</h5>
|
|
<pre>
|
|
Should Null Check <kbd>${#ctx.httpSession}</kbd>
|
|
Then <kbd>${#ctx.httpSession.id}</kbd>
|
|
</pre>
|
|
|
|
|
|
<span th:fragment="copy">LG Innotek</span>
|
|
|
|
</body>
|
|
</html> |