Re: Locations of resources ye again
Re: Locations of resources ye again
- Subject: Re: Locations of resources ye again
- From: Mark Morris <email@hidden>
- Date: Mon, 3 Jul 2006 08:39:56 -0500
Hello Vincent,
There are a few different approaches, each with their pros and cons.
And there are really 3 environments you're interested in: WOBuilder,
development, and deployment.
For images, especially app-specific ones, I think the consensus would
be to place them in the "Web Server Resources" folder. This will
make them visible to WOBuilder and in Direct Connect (the default
method of developing) and deployment. If it's an image that spans
applications, you might consider placing it in a static location
(e.g. "/images"), which will work for deployment, but it won't show
up in WOBuilder or in Direct Connect development. (This might be a
good time to mention that, with a little initial setup, you can NOT
use Direct Connect, and develop using a local web server to test, in
which case you would see those images in development.)
For css and javascript files, they're not going to be used by
WOBuilder anyway, so there's only development and deployment to
consider. You can place them along with the images in the "Web
Server Resources" folder, which means to reference them in your html
you need to use a WOResourceURL element. This will work in both
Direct Connect and deployment. If you want them to be in a static
location (e.g. "/css"), you're back to developing using a local web
server.
Basically it comes down to placing everything to be served by the web
server into "Web Server Resources" if you plan to develop using
Direct Connect, or setting up development using a local web server.
(If you place anything in "Web Server Resources", make sure it gets
copied to the appropriate spot under your web server doc root upon
deployment.)
I think I've covered the basics. There's some documentation of this
at <http://developer.apple.com/documentation/WebObjects/
Web_Applications/index.html>, but all I saw was a very brief
paragraph. Feel free to ask if you have any more questions.
Regards,
Mark
On Jul 3, 2006, at 8:01 AM, email@hidden wrote:
Dear List,
I have searched the archives, but can not find a definitive answer on
this perplexing subject, where does one place static recources (such
as images and css files) and how does one reference them, so that
they can both be found by WebObjects Builder and at runtime ? I can
get one to work but not the other ? Where is this documented ?
Thanks in advance
Vincent
_______________________________________________
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