Re: Regular v Servlet resource manager use
Re: Regular v Servlet resource manager use
- Subject: Re: Regular v Servlet resource manager use
- From: "Kai S. Wong" <email@hidden>
- Date: Tue, 26 Sep 2006 15:06:06 +0300
Hi Gavin,
In order to be deployment safe (original or servlet), you need to use
*URL* method to access your resources.
Replace your original method inputStreamForResourceNamed to
pathURLForResourceNamed and open the URL stream via openStream().
---
Kai
On 26-Sep-06, at 2:54 AM, Gavin Eadie wrote:
My app has been doing this successfully for years:
inStream = app.resourceManager
().inputStreamForResourceNamed (fileName, null, null);
but I converted it to a servlet and this no longer works (inStream
is null) ... ideas? .. Gav
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40objectbiz.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden