WOImage, WebServerResources, and absolute paths
WOImage, WebServerResources, and absolute paths
- Subject: WOImage, WebServerResources, and absolute paths
- From: Catherine Seppanen <email@hidden>
- Date: Sat, 18 Jun 2011 15:37:40 -0400
Executive summary:
How does a WOImage element like this:
<wo:img framework="SharedFramework" filename="template/logo.png" />
get translated to this HTML:
<img src="/WebObjects/MyApp1.woa/Frameworks/SharedFramework.framework/WebServerResources/template/logo.png">
Specifically, I need to know how the directory structure of the WebObjects directory is specified/determined.
Long explanation:
My web server documents directory currently has the following structure:
/WebObjects
/MyApp1.woa
/Contents
/Frameworks
/SharedFramework.framework
/WebServerResources
/MyApp2.woa
/Contents
/Frameworks
/SharedFramework.framework
/WebServerResources
One of the JavaScript libraries in SharedFramework needs some absolute paths (it's Fancybox's IE6 hacks using AlphaImageLoader in case anyone is using that). Since I use the JavaScript library in multiple apps, I can't specify the paths since they change by app:
/WebObjects/MyApp1.woa/Frameworks/SharedFramework.framework/WebServerResources/path-to-image
/WebObjects/MyApp2.woa/Frameworks/SharedFramework.framework/WebServerResources/path-to-image
My first thought was to go back to the old document structure like so:
/WebObjects
/MyApp1.woa
/MyApp2.woa
/Frameworks
/SharedFramework.framework
Then my absolute path won't be a problem:
/WebObjects/Frameworks/SharedFramework.framework/WebServerResources/path-to-image
I see how to accomplish this during the installation step (build.xml changes) but I want to make sure I'm not in for trouble with WOImage tags like above.
My apps are WebObjects 5.3.3 using Project Wonder.
Thanks,
Catherine
_______________________________________________
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