Foren

Getting url from a portlet

javi -, geändert vor 15 Jahren.

Getting url from a portlet

Junior Member Beiträge: 26 Beitrittsdatum: 29.10.08 Neueste Beiträge
I'm using 4.3.3 version of liferay and I want to get the url of the portlet.I have this code

FacesContext context = FacesContext.getCurrentInstance();
PortletRequest portletRequest = JSFPortletUtil.getPortletRequest(context);
HttpServletRequest httpReq = PortalUtil.getHttpServletRequest(portletRequest);
String url=PortalUtil.getCurrentURL(httpReq);

But in the third line I get class not found error and i have portal-impl.jar whit that class in common/lib/ext folder in my tomcat.
What I'm doing wrong?