Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
shashidhara ml
How to get the complete url of a page inside a another custom portlet
February 5, 2013 4:30 AM
Answer

shashidhara ml

Rank: Junior Member

Posts: 28

Join Date: October 4, 2012

Recent Posts

Hi
How to get the complete url of a page inside a another custom portlet

Thanks & Regards
Shashidhara M L
pranay rampally
RE: How to get the complete url of a page inside a another custom portlet
February 5, 2013 11:25 PM
Answer

pranay rampally

Rank: New Member

Posts: 8

Join Date: October 9, 2012

Recent Posts

I used this method to get the url.

ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long id =PortalUtil.getPlidFromFriendlyURL(themeDisplay.getCompanyId(), "/web/guest/pagefriendlyurl");

I know this is not exactly what you are looking. Hope you find a solution and share it here.
shashidhara ml
RE: How to get the complete url of a page inside a another custom portlet
February 6, 2013 5:44 AM
Answer

shashidhara ml

Rank: Junior Member

Posts: 28

Join Date: October 4, 2012

Recent Posts

I found Solution following is the code


ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);

String url = PortletURLUtil.getRefreshURL(request, themeDisplay);
or
PortletURL portletURL = themeDisplay.getURLSiteSettings();