java - User Name in Header in Jsp -
I have an application with spring + spring protection in my application I have a header, in that header I have a user Is the name, but this username is only present in my first page, if I change the page, the username disappears. I know that I can get the name of the user with the principal, but I want to save from being the principal in every controller. Is there any other way of keeping names in the header?
You are using Spring Protection JSP tags
& Lt;% @ taglib prefix = "sec" yuris = "http://www.springframework.org/security/tags"% & gt; & Lt; Sec: Authentication property = "Principal username" />
Comments
Post a Comment