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

Popular posts from this blog

python - rpy2 import is not working -

javascript - How to get MySQL query result returned using $.ajax -

javascript - How to use the code plugin with popcornjs -