Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 86816 invoked from network); 5 Jul 2006 16:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 16:39:12 -0000 Received: (qmail 82248 invoked by uid 500); 5 Jul 2006 16:39:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 82207 invoked by uid 500); 5 Jul 2006 16:39:00 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 82195 invoked by uid 99); 5 Jul 2006 16:39:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 09:39:00 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hassan.schroeder@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 09:39:00 -0700 Received: by ug-out-1314.google.com with SMTP id q2so1839372uge for ; Wed, 05 Jul 2006 09:38:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VyFTWh/388AUhTOrbQsFmV4nw0P30810ZEPdJDC3DG87YBqMUqDK8yV5yunj5MKjtDn0tIYxauvID0pgYjvmbvigmRBKCW9IJzO6dZqJkOZ9vaJ87YPmQRxg5yLqQ1I7VT2WqFZJ+Zg/Db61JQosL9yQGcc+0bPu7VctvAPcdU8= Received: by 10.66.240.12 with SMTP id n12mr8000040ugh; Wed, 05 Jul 2006 09:38:39 -0700 (PDT) Received: by 10.66.254.4 with HTTP; Wed, 5 Jul 2006 09:38:39 -0700 (PDT) Message-ID: <4eedb92a0607050938g73c23251l43086e37e557c7d0@mail.gmail.com> Date: Wed, 5 Jul 2006 09:38:39 -0700 From: "Hassan Schroeder" To: "Tomcat Users List" Subject: Re: Serving CSS files from a certain URL In-Reply-To: <20060705153306.51245.qmail@web35404.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4eedb92a0607050803j1f9ee389vdf2bac2fb81b4cee@mail.gmail.com> <20060705153306.51245.qmail@web35404.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/5/06, Alec Swan wrote: > In any case I don't understand why this works in your case. Now that I have more coffee in me, me neither :-) It really shouldn't, and I'm at another location now, so I can't revisit that, but... The problem is that "relative" to the container depends on how your JSP is being invoked; consider: Test /WEB-INF/jsp/Test.jsp Test /test Test /foo/bar/test The second mapping will work with your ../../css/Styles.css link, the first will not. > BTW, why do you think it's a bad idea to keep web designers focused on the look and feel of the site and releaving them from the deployment details? OT to the list -- but I think a development team should work within a common (consistent) environment. Otherwise you wind up jumping through the kind of hoops we're discussing now. :-) In any case, if I *had* to solve this problem, I'd use the relative links that work for your 'static' situation, and then either 1) serve all *.css files with a servlet that "fixes" the paths or 2) rewrite the css file paths with a Filter HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org