You mean, like this?
http://www.bluesunrise.com/portlet-api/javax/portlet/PortletContext.html#getRealPath(java.lang.String)
PortletContext portletApplication = getPortletContext();
String path = portletApplication.getRealPath("/WEB-INF/help.properties");
Regards,
-Scott Heaberlin
http://www.heabdogg.com
On Mon, 6 Dec 2004 10:42:44 +0600, Thiwanka Wimalasuriya
<[EMAIL PROTECTED]> wrote:
> dear all,
>
> i need to read and write to a property file from a jsr168 portlet (J2).
> could you point me some resources for how to do this
>
> is there a way to get the realpath of a portlet app the manner we used to do
> with servlets
>
> eg:
> ServletContext application = getServlet().getServletContext();
> String path = application.getRealPath("WEB-INF\\help.properties");
>
> kind regards
> -thiwanka
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]