Foren

Portal URL

Daniel Wilmes, geändert vor 11 Jahren.

Portal URL

Regular Member Beiträge: 164 Beitrittsdatum: 23.05.11 Neueste Beiträge
Hi there,

I am using liferay 6.0.06 and am creating a portlet. I have overridden the doView(RenderReqeust, RenderResponse) method. Inside of this method I want to construct a portal url that would look like a liferay url that is an action url (like a <portlet:actionURL name="submit var="submitAction" /> tag that get compiled in the jsp int a url like below).


http://localhost:8080/group/control_panel/manage?
p_auth=vh3aGo29
&amp;p_p_id=tadmin_WAR_adminportlet
&amp;p_p_lifecycle=1
&amp;p_p_state=maximized
&amp;p_p_mode=view
&amp;doAsGroupId=10365
&amp;refererPlid=10712
&amp;_tadmin_WAR_adminportlet_pk=674
&amp;_ttadmin_WAR_adminportlet_javax.portlet.action=editCustomer



Thanks,
Daniel
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Portal URL

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
So, what's the question or are you just offering us a description of your portlet?
Gavin Headen, geändert vor 11 Jahren.

RE: Portal URL

New Member Beiträge: 18 Beitrittsdatum: 01.06.10 Neueste Beiträge
I believe the question was how to generate the URL from within the doView method of the Dispatcher.
Daniel Wilmes, geändert vor 11 Jahren.

RE: Portal URL

Regular Member Beiträge: 164 Beitrittsdatum: 23.05.11 Neueste Beiträge
PortletURL url = PortletURLUtil.getCurrent(renderRequest, renderResponse);
Gavin Headen, geändert vor 11 Jahren.

RE: Portal URL

New Member Beiträge: 18 Beitrittsdatum: 01.06.10 Neueste Beiträge
Now I'm curious as to what you are using this for?
Daniel Wilmes, geändert vor 11 Jahren.

RE: Portal URL

Regular Member Beiträge: 164 Beitrittsdatum: 23.05.11 Neueste Beiträge
I am scrapping some HTML using Jsoup. I am going to replace the urls to pass through the portlet. We don't want to use an IFrame.