Re: file locations
Re: file locations
- Subject: Re: file locations
- From: Chuck Hill <email@hidden>
- Date: Fri, 12 Nov 2004 13:32:03 -0800
Hi Wes,
On Nov 12, 2004, at 1:05 PM, Wes James wrote:
OK - I at the end of my sanity here..... Where does a default wo app
look for resources?
Well, the Resources directory. :-)
In my case, dynamic resources.
Resources are static. Perhaps you want something else?
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....
You kind of lost me there, grabbing the file name from the database.
Hmmm, maybe it _is_ me after all....
Anyway, the only way I can get this to work is by put the
pics in app/build/app.woa/Contents/Resources
Yep, that is where the static resources for the app go.
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).
Sounds right. What, exactly, is it that you want to do? The slides
are supposed to be under the webserver doc root, or not?
The only place it workes is in the woa
resources folder - not even a subfolder?
The name of that folder is a clue. :-)
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.....
Nope, you are misusing that folder.
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....
See WOResourceManager. If there is anything, it will be there.
I think it is time to take a step back, a deep breath, and say "Here is
what I need to do. What is the best way to accomplish this?"
Chuck
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:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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