Re: [Newbie] -> how to reference static files (css, images, etc)?
Re: [Newbie] -> how to reference static files (css, images, etc)?
- Subject: Re: [Newbie] -> how to reference static files (css, images, etc)?
- From: Chuck Hill <email@hidden>
- Date: Thu, 18 Aug 2005 10:51:37 -0700
On Aug 18, 2005, at 12:18 AM, Geoff Hopson wrote:
<Chuck Mode>
Get used to developing your app using a web server and deploy all your
CSS/images/scripts directly under a webserver docroot
</Chuck Mode>
ROFL!
When I develop a WO app, I have 3 'web server resource' folders -
images, styles and scripts. I add a folder under the web server doc
root (e.g. /var/www/html/MyWOApp), and then softlink from inside that
folder to the images/scripts/styles folders in my Eclipse workspace
(e.g. ln -s /home/ghopson/Work/workspace/MyWOApp/images).
In my WOComponents, I directly access the image as if it is under the
web server (which it is)
Eg in a WOD file
myImage: WOImage { filename = "/MyWOApp/images/myImage.gif"; }
Any new stuff I add to my WO app workspace is then available under the
webserver automatically.
That is a very good idea!
YMMV on Windows :-)
Point is, developing under a web server will save you
time/effort/frustration etc when you come to deploy your application.
Amen.
Chuck
\
On 17/08/05, Miguel Arroz <email@hidden> wrote:
Hi!
I'm learning WO, and I have a probably basic and stupid question,
but I cannot find this anywhere in the docs, so...
I put some CSS and GIF files in the "Web server resources"
directory. How can I access them, specially the CSS file? I find no
way to do it, and all the WO samples I saw until now do not use a
CSS...
Yours
Miguel Arroz
"The world lies in the hands of evil
And we pray it would last" -- Apocalyptica, Life Burns!
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
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:
40global-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