Deploying Web Applications to Tomcat
Subject:   servlet contexts and URLs in JSPs
Date:   2001-06-27 11:31:38
From:   qkak
One thing seems to be missing from the servlet/JSP spec or implementation is how to handle URLs to releated resources in the WAR file.

If I have a URL that is from WAR root it does not get found. Something like this:

<IMG HREF=/images/test.jpg>

If I put this in a context other than root, it will not find the image. Is there a method to rewrite these URLs to include the context prefix?