Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Daniel Wilmes
Portal URL
4. Mai 2012 12:42
Antwort

Daniel Wilmes

Rang: Regular Member

Nachrichten: 164

Eintrittsdatum: 23. Mai 2011

Neue 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
Hitoshi Ozawa
RE: Portal URL
4. Mai 2012 17:15
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7954

Eintrittsdatum: 23. März 2010

Neue Beiträge

So, what's the question or are you just offering us a description of your portlet?
Gavin Headen
RE: Portal URL
4. Mai 2012 20:27
Antwort

Gavin Headen

Rang: New Member

Nachrichten: 18

Eintrittsdatum: 1. Juni 2010

Neue Beiträge

I believe the question was how to generate the URL from within the doView method of the Dispatcher.
Daniel Wilmes
RE: Portal URL
7. Mai 2012 04:41
Antwort

Daniel Wilmes

Rang: Regular Member

Nachrichten: 164

Eintrittsdatum: 23. Mai 2011

Neue Beiträge

PortletURL url = PortletURLUtil.getCurrent(renderRequest, renderResponse);
Gavin Headen
RE: Portal URL
7. Mai 2012 06:58
Antwort

Gavin Headen

Rang: New Member

Nachrichten: 18

Eintrittsdatum: 1. Juni 2010

Neue Beiträge

Now I'm curious as to what you are using this for?
Daniel Wilmes
RE: Portal URL
7. Mai 2012 07:00
Antwort

Daniel Wilmes

Rang: Regular Member

Nachrichten: 164

Eintrittsdatum: 23. Mai 2011

Neue 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.