【发布时间】:2013-10-15 20:33:42
【问题描述】:
我正在编写一个 Portlet,它将放置在给定的 liferay 站点上。 Liferay 可以有多个站点,可以是公共的或私有的。
如何生成一个链接(在我的 portlet JSP 中)到放置 portlet 的站点的根页面?
例如对于网站mySite,我期望类似http://localhost:8080/web/mySite/
这两个不是我需要的:
themeDisplay.getPortalURL() // "liferay portal web root", not site root
themeDisplay.getURLHome() // default site home, not necessarily my specific site
【问题讨论】: