thanks scott, it worked ! regards -thiwanka
----- Original Message ----- From: "Scott Heaberlin" <[EMAIL PROTECTED]> To: "Jetspeed Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 6:44 AM Subject: Re: portlet app realpath > You mean, like this? > > http://www.bluesunrise.com/portlet-api/javax/portlet/PortletContext.html#get RealPath(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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]