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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kwong% 40objectbiz.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to