0

In spring security after successfully login how to print user First name and Last name in jsp page like :

sec:authentication property="principal.firstname" and sec:authentication property="principal.lastname"

BetaRide
  • 16,207
  • 29
  • 99
  • 177
ajit
  • 83
  • 1
  • 1
  • 4
  • 1
    possible duplicate of [In Spring How to print user first name and last name from ""](http://stackoverflow.com/questions/17297322/in-spring-how-to-print-user-first-name-and-last-name-from-secauthentication-p) – Aleksandr M Jun 26 '13 at 08:56

1 Answers1

0

You should implement your own UserDetails with properties which you need.

Alex
  • 11,451
  • 6
  • 37
  • 52
  • Thanx Alex.. can u explain me in details, so i can understand clearly . Because i am very new to spring security.. – ajit Jun 26 '13 at 06:00
  • @user2358480 See similar question: http://stackoverflow.com/questions/10607696/spring-security-custom-userdetails – Alex Jun 26 '13 at 06:01