how to get user or username using principle, httpRequest
posted 5 years ago
I am new in JEE 6 and servlets. I have been trying to learn how to get an instance of a user and show his username roles. I know how to check if a user is in a role. but I couldn't get how to show the username. or at least an instance of itself.