Re: Resource Manager returns wrong URL for files in sub-folder of WebServerResources
Re: Resource Manager returns wrong URL for files in sub-folder of WebServerResources
- Subject: Re: Resource Manager returns wrong URL for files in sub-folder of WebServerResources
- From: Lachlan Deck <email@hidden>
- Date: Thu, 17 Jul 2008 21:20:05 +1000
On 17/07/2008, at 7:14 PM, Yung-Luen Lan wrote:
I put my css/javascript/images into these folder:
WebServerResouces/css/
WebServerResouces/js/
WebServerResouces/imgs/
in my eclipse wo project. I checked the compiled
MyApp.woa/Contents/WebServerResources, these sub-folders were not
flattened.
However, when I call
application().resourceManager().urlForResourceNamed("main.css", null,
null, null), it returns
"/WebObjects/MyApp.woa/Contents/WebServerResources/main.css". <--
should be .../WSR/css/main.css
And
application().resourceManager().urlForResourceNamed("css/main.css",
null, null, null) returns
"/ERROR/NOT_FOUND/app=HypoServer/filename=css/main.css".
How could I get the correct url for files inside sub-folders of WSR?
Thanks.
Have you tried urlForResourceNamed("/css/main.css", null, null, null)?
with regards,
--
Lachlan Deck
_______________________________________________
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