Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 49064 invoked from network); 7 Dec 2004 08:39:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 08:39:26 -0000 Received: (qmail 45501 invoked by uid 500); 7 Dec 2004 08:39:14 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 45458 invoked by uid 500); 7 Dec 2004 08:39:13 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 45438 invoked by uid 99); 7 Dec 2004 08:39:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail3.hsphere.cc (HELO mail3.hsphere.cc) (216.157.145.23) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 07 Dec 2004 00:39:10 -0800 Received: (qmail 64692 invoked by uid 399); 7 Dec 2004 08:39:08 -0000 Received: from unknown (HELO thiwanka) (thiwanka@srilogic.com@220.247.245.39) by mail3.hsphere.cc with SMTP; 7 Dec 2004 08:39:07 -0000 Message-ID: <008701c4dc38$4981d020$3200a8c0@thiwanka> From: "Thiwanka Wimalasuriya" To: "Jetspeed Developers List" , "Scott Heaberlin" References: <001e01c4db4e$0db2cc10$3200a8c0@thiwanka> Subject: Re: portlet app realpath Date: Tue, 7 Dec 2004 14:37:11 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N thanks scott, it worked ! regards -thiwanka ----- Original Message ----- From: "Scott Heaberlin" To: "Jetspeed Developers List" 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 > 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: jetspeed-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org