Announcement Announcement Module
Collapse
No announcement yet.
Saving user details Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Saving user details

    Hi everyone.

    I have the following question: how can I "save" the user data (like id, password, other relevant informations) , to retrieve inside other classes, when it needed. I was focusing in UserDetails interface and your applications to solve that problem, but i'm not sure. I hope you understand my doubt. Thanks in advance


    P.S.:

    I'm using Spring MVC 2.5 and Spring Security 2.0

  • #2
    Hi ,

    You can try to use SecurityContextHolder.getContext().getAuthenticati on() in the class to get more information except password as it is protected.
    If you want to get info in the jsp, then you can use tab lib which provided by spring security. E.g. <security:authentication property="name" />

    Comment

    Working...
    X