Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 55491 invoked from network); 22 Feb 2004 00:20:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Feb 2004 00:20:53 -0000 Received: (qmail 41438 invoked by uid 500); 22 Feb 2004 00:20:18 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 41419 invoked by uid 500); 22 Feb 2004 00:20:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 41405 invoked from network); 22 Feb 2004 00:20:18 -0000 Received: from unknown (HELO web41501.mail.yahoo.com) (66.218.93.84) by daedalus.apache.org with SMTP; 22 Feb 2004 00:20:18 -0000 Message-ID: <20040222002025.86318.qmail@web41501.mail.yahoo.com> Received: from [217.185.46.6] by web41501.mail.yahoo.com via HTTP; Sat, 21 Feb 2004 16:20:25 PST Date: Sat, 21 Feb 2004 16:20:25 -0800 (PST) From: Juergen Weber Subject: Relative links do not work with controller servlet. To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I want to run all requests through a controller servlet. The requests should be like /controller/dir/fileXXX.html This is done with a Controller /controller/* request.getPathInfo() is "dir/fileXXX.html" fileXXX.html in reality are JSPs, which the Controller servlet forwards to. In the JSPs are relative links to images and CSS. Well, as in the browsers view the html files are below /controller, it requests these relative links also below /controller, but the controller cannot and should not handle CSS and images. This problem surfaces often in the newsgroups, but I did not find a solution. Is there a good, portable solution to the problem ? Ideally would be a *.css,*.jpg,*.gif Tag in web.xml. Thanks, Juergen __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org