portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiwanka Wimalasuriya" <thiwa...@srilogic.com>
Subject Re: portlet app realpath
Date Tue, 07 Dec 2004 08:37:11 GMT
thanks scott, it worked !

regards
-thiwanka

----- Original Message -----
From: "Scott Heaberlin" <heabdogg@gmail.com>
To: "Jetspeed Developers List" <jetspeed-dev@jakarta.apache.org>
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
> <thiwanka@srilogic.com> 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


Mime
View raw message