Re: WOImage, WebServerResources, and absolute paths
Re: WOImage, WebServerResources, and absolute paths
- Subject: Re: WOImage, WebServerResources, and absolute paths
- From: Kieran Kelleher <email@hidden>
- Date: Sun, 19 Jun 2011 08:05:08 -0400
You can also just put resources into the webserver doc root and using plain img tags and absolute paths if you like.
On Jun 18, 2011, at 3:37 PM, Catherine Seppanen wrote:
> 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
_______________________________________________
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