Re: Turn key setup
Re: Turn key setup
- Subject: Re: Turn key setup
- From: Marek Wawrzyczny <email@hidden>
- Date: Tue, 11 Nov 2003 14:55:00 +1100
Use relative urls and the normal static image component (not WOImage).
If you use static image tags and make your image url '/img/imageA.gif',
then the browser takes care of the rest and you never have to worry
about the domain. You then just have to make sure your images are being
served properly by the web server.
On Tuesday, Nov 11, 2003, at 14:18 Australia/Sydney, Greg Hulands wrote:
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.
Marek Wawrzyczny
software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400 fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
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.