file locations
file locations
- Subject: file locations
- From: Wes James <email@hidden>
- Date: Fri, 12 Nov 2004 14:05:27 -0700
OK - I at the end of my sanity here..... Where does a default wo app
look for resources? In my case, dynamic resources. I'm working on
D2W slides viewing app. The image field has been set to use
D2WDisplayImageFromPath in the framework: app. I thought of using a
D2WCustomCompent and make a page with only the WOImage on it, but I
don't know how to grab the file name from the database when a search
is done.... Anyway, the only way I can get this to work is by put the
pics in app/build/app.woa/Contents/Resources
I have run the app from xcode and I've set it up via JavaMonitor. In
the image field I've tried /slides/slide.jpg - trying to get from web
server (it workes if I just type in http://server/slides/slide.jpg),
slides/slide.jpg (as a symbolic link to
/Library/WebServer/Documents/slides and an actual slide folder at the
woa resources level). The only place it workes is in the woa
resources folder - not even a subfolder? Then when I add a new record
and put a new file in the folder I have to stop the wo app and start
it up again to see the new file - I should have to do this - just add
the record and it should then get the file -right.....
It works fine if I drag the files into the xcode window, but that is
static and I'm going to have more and more slides as time goes on....
I've tried finding docs or comments on where folder locations are from
the woa stand point when it is running, I can't find anything specific
- i.e. when an app runs it looks in these folders for resources or
here is a WOvariable to set a path for resources....
I have even looked in the JavaMonitor.woa in the two places it is
found in a default WO install. It has a WebServerResources folder in
/System/Library/WebOjbects/JavaApplications/JavaMonitor.woa/... and in
/Library/WebServer/Documents/WebOjbects/JavaMonitor.woa/... with the
jpg files (same ones in both locations) and when I renamed the file
ButtonConfig.jpg in the /System/... it would not show after restarting
JavaMonitor, but if I renamed the ButtonConfig.jpg in the /Library....
location it would not show up - so it is not using the web resource,
but the wo resource to get the jpg.
Any help would be great in clarifying where wo apps look for resources
- after troubleshooting different things I see know way other than
putting all the files in the wo resources folder, but this seems
unjustified based on compents in this forum.....
thanks,
wj
_______________________________________________
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