6 Replies Latest reply on Nov 28, 2006 9:46 AM by Boleslaw Dawidowicz

    Determine portal logged-in user from external servlet

    Jonas Chapuis Newbie

      Hi,

      I am trying to setup an architecture where portlets communicate with servlets that are independent from the portal, using AJAX. In this context, I need to ensure that the logged-in user is the one sending the request (encode the username in the AJAX request), and upon reception of the request in the servlet, ensure that this user is currently logged-in to the portal.

      So my two questions are:
      - How do I access the currently logged-in users from the servlet ?
      - How do I encode the username in the AJAX request ?

      Thanks for your advice,

      Jonas