• 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: Static Images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static Images


  • Subject: Re: Static Images
  • From: Robert Walker <email@hidden>
  • Date: Wed, 25 Jun 2003 00:31:03 -0400

Okay, there has been a relatively drawn out discussion on static image, but I didn't see anyone really providing the dirt on this issue, so here it is:

Think about why you cannot use relative paths in WebObjects......

Answer: WebObjects has built-in support for load balancing your application across multiple applications servers. The instances you create may not reside on the web server, and for a high traffic web sites, they really shouldn't reside on the web server. So, how can you have a relative path when the web server is a different box than your application server? Answer: You really can't (at least without mapping a drive from your application servers to your web server, which is a really BAD idea!)?

So the answer to how you to use static images in your WebObjects application (as several people have mentioned) is to provide an absolute path to your images on the web server (i.e. change images/myimage.gif to http://www.mydomain.com/images/myimage.gif). Basically just open your static web page, perform a global search and replace to make the paths absolute. Simple!

Now your WebObjects application uses static images, but does not break load balancing.

On Monday, June 23, 2003, at 11:51 PM, email@hidden wrote:

Could someone please tell me how to add static images to my page?

I think the consensus is that a Web server is more efficient at vending static images than WO, so you might consider just adding a static image tag to your page. WOBuilder supports configuring this. One way (I think) is to add a WOImage and make it static in the Inspector. Then you can enter the path to the image and be done with it.

Aloha,
Art

--
Sincerely,
Robert Walker
http://www.robertwalker1.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Static Images
      • From: Marek Wawrzyczny <email@hidden>
  • Prev by Date: Re: Globally Unique IDs
  • Next by Date: Re: Globally Unique IDs
  • Previous by thread: Re: Static Images
  • Next by thread: Re: Static Images
  • Index(es):
    • Date
    • Thread