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:[EMAIL PROTECTED]]
Sent: 29 November 2000 14:10
To: '[EMAIL PROTECTED]'
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.
___________________________________________________________________________