tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Freeman <Russell.Free...@sagemaker.com>
Subject RE: "root-relative" URLs don't work(Tomcat 3.1)
Date Wed, 29 Nov 2000 17:44:57 GMT
Thanks Marek, 

Yes, that was the conclusion I have come to trying to get it working
although I still couldn't get .forward() to work either.

Yes, hardcoding /context-name/ before all links seems like a bad idea to me.
Surely there must be a better way!?

-----Original Message-----
From: VONKA, Marek [mailto:Marek.VONKA@sema.co.uk]
Sent: 29 November 2000 15:51
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: "root-relative" URLs don't work(Tomcat 3.1)


Hi,

Not an expert so not sure what is suppossed to happen, but for referencing
resources like this I've found that you also have to include your
application context name, so it would be "/myContextName/style.css". Dosen't
seem correct to me, but that's what I've found for Tomcat 3.1. Note that for
aRequestDispatcher.forward(...) you would not include the context name. Yuk.

Hope that helps!

Marek

-----Original Message-----
From: Russell Freeman [mailto:Russell.Freeman@sagemaker.com]
Sent: 29 November 2000 14:10
To: 'tomcat-user@jakarta.apache.org'
Subject: "root-relative" URLs don't work(Tomcat 3.1)


Whenever I have a web page that references a "root-relative" resource, e.g.
"/style.css", tomcat can't see to resolve it properly. It seems to be
ignoring the web site root as specified in server.xml. Obviously if the
resource lives in the same location as the current page I can drop the
leading forward-slash. However this won't work for resources in different
locations.

I've tried turning on debug for the webapp but I'm not seeing anything.

Any help appreciated

Russ


___________________________________________________________________________
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema Group. 
If you are not the intended recipient, be advised that you have received
this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema Group
Helpdesk by telephone on +44 (0) 121 627 5600.
___________________________________________________________________________

Mime
View raw message