1 Reply Latest reply on Mar 24, 2008 7:43 AM by Shakti Purohit

    How to retrieve username?

    Shakti Purohit Newbie

      Hi all,

      I have deployed a portlet in JBoss. I login into the portal and fire a request. I also have a servlet which is part of the same web application of which portlet is a part. While trying to retrieve username using request.getPrincipal(), I get null.

      Any idea as to why I am getting null username? Please provide a way to retrieve username from http servlet request.