Hi Chris!
"/ccp/showhealthsciences.htm" would map to:
www.yourserver.com/ccp/showhealthsciences.htm
"/" is mapped to tomcat/webapps/ROOT by default.
In order to make the serving of static content as efficient as possible you
don't want it to go through Turbine, thus you could place the "static" stuff
in some directory off Tomcat's ROOT. E.g. if your project is in
tomcat/webapps/genesis then put your static stuff in, say,
tomcat/webapps/ROOT/genesisresources or something similar. Then use
"/genesisresources/..."
Works for us! I'd actually like to hear other people's views on this - how
DO you handle static stuff like images, js and css files, etc.?
Frank
----- Original Message -----
From: "Gopal Ramasammy-Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 8:24 PM
Subject: WAR references
This question may be a little offtopic:
I am referencing a static HTML inside Javascript using a relative path eg
if (document.forms[0].elements[healthSciences].checked) {
window.location = "/ccp/showhealthsciences.htm";
}
I am a little new to WAR files. Where would tomcat look for this static page
insider the WAR directory structure?
If this kind of reference should be done more cleverly in Turbine using
variables, how could I do this, so that even if the name of my context path
changed, it would not affect this reference?
Regards
Chris
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]