3 Replies Latest reply on May 27, 2010 10:04 AM by hauch

    Getting the portalname programmatically

    hauch

      I have created my own (sub)portal in the browser.

       

      Is there a way to obtain the name of the portal programmatically?

       

      So for instance invoking a portlet on page with url

           http://localhost:8080/portal/private/<my portal>/<page>

       

      ... would make me able to extract <my portal> in my code.

       

      I can get somewhat close with ExoContainerContext.getCurrentContainer().getContext().getPortalContainerName() which gives me 'portal'.

       

      Any suggestions?