Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with absolute path and context using Tomcat 4

843834May 15 2003 — edited May 19 2003
I added the following line to my server.xml:
<Context path="/track" docBase="track" />
Now I have used absolute paths(ex: /includes/css/style.css) throughout my code and it worked when I served my application from the ROOT context but when I moved it to the /track - the paths did not include the new root context.
So instead of looking at http://localhost/track/includes/css/style.css it still looks at http://localhost/includes/css/style.css.

Is there any kind of setting I am missing in the web.xml or server.xml? I really would like to be able to use absolute paths relative to the context root.

Please help! Thanks in advance.
-Chris
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2003
Added on May 15 2003
4 comments
424 views