I am working on a user login form. It is on my "home.html" ,
I want to show the username after login(when I get session datas form
"login.html" by "Httpsession")
Otherwise just hide when it is empty.
<span th:text="${user.name}" id="uname"></span>
When it is empty, I have an error message like this:
EL1007E: Property or field 'name' cannot be found on null.
Thanks.