Application.getURL and window.getURL is comming as null

Hi,

I am new to vaadin and i am trying to inject another portlet component into my portlet. I tried to get application url and even window.url

                           Collection<Application> s=(Collection<Application>)getContext().getApplications();
			Iterator<Application> iterator=s.iterator();
			Application application=iterator.next();
			System.out.println(application.getURL())

in both ways i am getting null. Could you please help me in getting window URL of a portlet?

Regards,
Vasanth

You can’t use getURL() for portlets. See:
Window.getURL()