掲示板

RE: How to get the absolute path of a portlet?

thumbnail
11年前 に David H Nebinger によって更新されました。

RE: How to get the absolute path of a portlet?

Liferay Legend 投稿: 14918 参加年月日: 06/09/02 最新の投稿
Portlets don't have absolute paths.

The WAR artifacts that contain them do, but portlets do not.
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: How to get the absolute path of a portlet?

Liferay Legend 投稿: 14918 参加年月日: 06/09/02 最新の投稿
We may be talking different things here, absolute path typically means an absolute filesystem path. Portlets do not have one of these.

And no, you wouldn't put one in portlet.properties anyway.

What exactly are you trying to accomplish?
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: How to get the absolute path of a portlet?

Liferay Legend 投稿: 14918 参加年月日: 06/09/02 最新の投稿
Um, no you don't...

Just as in a servlet, you can use PortletContext's getResourceAsStream() to read a file.
thumbnail
10年前 に David H Nebinger によって更新されました。

RE: How to get the absolute path of a portlet?

Liferay Legend 投稿: 14918 参加年月日: 06/09/02 最新の投稿
How is that related to this thread?

Besides, PACL in 6.1 is broken. At least for many of the plugins I'm preparing for the marketplace, they just can't be deployed.

Oh, and there's the whole money issue. Free apps in Apple's app store are typically appetizers for a paid app; I don't think there's many Liferay developers out there willing to give away their time investment on free plugins...