• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Newbie] -> how to reference static files (css, images, etc)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] -> how to reference static files (css, images, etc)?


  • Subject: Re: [Newbie] -> how to reference static files (css, images, etc)?
  • From: Geoff Hopson <email@hidden>
  • Date: Thu, 18 Aug 2005 08:18:08 +0100

<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>

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.

YMMV on Windows :-)

Point is, developing under a web server will save you
time/effort/frustration etc when you come to deploy your application.

Geoff


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:
>
> 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [Newbie] -> how to reference static files (css, images, etc)?
      • From: Chuck Hill <email@hidden>
References: 
 >[Newbie] -> how to reference static files (css, images, etc)? (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: first stab at generating an XML output
  • Next by Date: Unicode trouble
  • Previous by thread: Re: problem with pop-up display
  • Next by thread: Re: [Newbie] -> how to reference static files (css, images, etc)?
  • Index(es):
    • Date
    • Thread