• 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: Turn key setup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn key setup


  • Subject: Re: Turn key setup
  • From: Greg Hulands <email@hidden>
  • Date: Tue, 11 Nov 2003 13:18:54 +1000

The best thing to do is use absolute URLs in your application for 2 reasons:

1. You can store the images on a separate server altogether and let a dumb
web server send out images without bogging down your appserver

That is the intention. Based on the host of the mediaServer value, so it could be http://media.host.com or it could be www.host.com.



2. It is easy to "akamize" your app later on if needed.

There is no intention of akamizing it. It is just that when I sell it to company A, I don't want to have change any urls.



The best way to use absolute URLs is to have a class in your app that
generates the path to the images or resources based on data in your app. For
example, you might have a config parameter called basedir that points to the
first part of your url, i.e. http://www.mycompany.com/images. In your code
just use the image name as a binding and don't worry that you can't see the
images in WOBuilder.

The base dir is the same as the mediaServer, It will just append the rest of the path to the images. Could you explain how to do this please.


Thanks,
Greg

Dov Rosenberg Conviveon


On 11/10/03 6:07 PM, "Greg Hulands" <email@hidden> wrote:

Hi,
I am making a webobjects web application that I would like to make into
a turn key type solution that is very customisable in the sense that
url's for everything is relative. I have a class called Configuration
that has all the variable settings and strings. For example I have a
setting called mediaServer that is a host name that will serve out all
the images of the application, eg http://media.host.com. Is it possible
to get WOImage and WOActiveImage to somehow use
application().config().mediaServer() in their image urls?


This sort of thing would be good so that browsers will cache the image
and decrease the burden of transferring images every time because of
the /cgi-bin/.../sessionid/...jpg not caching.

Has anyone else encountered this problem? Does anyone have a solution?


Any help is greatly appreciated.

Regards,
Greg
_______________________________________________
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.
_______________________________________________
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: Turn key setup
      • From: Marek Wawrzyczny <email@hidden>
References: 
 >Re: Turn key setup (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Re: Application Clustering
  • Next by Date: Re: Application Clustering
  • Previous by thread: Re: Turn key setup
  • Next by thread: Re: Turn key setup
  • Index(es):
    • Date
    • Thread