Hi,

I wasn't using Wonder until now and used to get resources using WOResourceManager like this (in my DirectAction class)

WOResourceManager resMgr = WOApplication.application().resourceManager(); String mapFilePath = resMgr.pathURLForResourceNamed("MyMap.xml", null, null).toString();

I would get my file path and would happily use it.

I recently switched to Wonder and changed the code to this:

ERXResourceManager resMgr = (ERXResourceManager) ERXApplication.application().resourceManager(); String mapFilePath = resMgr.pathURLForResourceNamed("MyMap.xml", null, null).toString();

I get a NullPointerException with the above code because resMgr.pathURLForResourceNamed evaluates to null.

Anything I'm missing?

Thanks in advance...

Thanks
Kamal



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

This email sent to [email protected]

Reply via email to