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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com > > This email sent to kelleh...@gmail.com _______________________________________________ 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 arch...@mail-archive.com