4 Replies Latest reply on Apr 2, 2008 9:52 AM by pmn92

    How to get a portlet's instance name from the portlet class?

    porcho

      Hi there. I was wondering whether it's possible to obtain the portlet's instance name from the portet class. More specifically, I wanted to do something like that:

      public class APortlet extends GenericPortlet{
      
      ...
      
      public void init() throws PortletException{
       String instanceName = this.something.getPortletInstanceName()
      
      ...
      
      }
      


      So...is there a way to do it?

      Thanks in advance!