Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Daniel Wilmes
Portal URL
May 4, 2012 12:42 PM
Answer

Daniel Wilmes

Rank: Regular Member

Posts: 164

Join Date: May 23, 2011

Recent Posts

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
May 4, 2012 5:15 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

So, what's the question or are you just offering us a description of your portlet?
Gavin Headen
RE: Portal URL
May 4, 2012 8:27 PM
Answer

Gavin Headen

Rank: New Member

Posts: 18

Join Date: June 1, 2010

Recent Posts

I believe the question was how to generate the URL from within the doView method of the Dispatcher.
Daniel Wilmes
RE: Portal URL
May 7, 2012 4:41 AM
Answer

Daniel Wilmes

Rank: Regular Member

Posts: 164

Join Date: May 23, 2011

Recent Posts

PortletURL url = PortletURLUtil.getCurrent(renderRequest, renderResponse);
Gavin Headen
RE: Portal URL
May 7, 2012 6:58 AM
Answer

Gavin Headen

Rank: New Member

Posts: 18

Join Date: June 1, 2010

Recent Posts

Now I'm curious as to what you are using this for?
Daniel Wilmes
RE: Portal URL
May 7, 2012 7:00 AM
Answer

Daniel Wilmes

Rank: Regular Member

Posts: 164

Join Date: May 23, 2011

Recent Posts

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.