留言板

Portal URL

Daniel Wilmes,修改在11 年前。

Portal URL

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
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,修改在11 年前。

RE: Portal URL

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
So, what's the question or are you just offering us a description of your portlet?
Gavin Headen,修改在11 年前。

RE: Portal URL

New Member 帖子: 18 加入日期: 10-6-1 最近的帖子
I believe the question was how to generate the URL from within the doView method of the Dispatcher.
Daniel Wilmes,修改在11 年前。

RE: Portal URL

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
PortletURL url = PortletURLUtil.getCurrent(renderRequest, renderResponse);
Gavin Headen,修改在11 年前。

RE: Portal URL

New Member 帖子: 18 加入日期: 10-6-1 最近的帖子
Now I'm curious as to what you are using this for?
Daniel Wilmes,修改在11 年前。

RE: Portal URL

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
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.