Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 211939A09 for ; Wed, 6 Jun 2012 13:30:19 +0000 (UTC) Received: (qmail 14332 invoked by uid 500); 6 Jun 2012 13:30:16 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14167 invoked by uid 500); 6 Jun 2012 13:30:15 -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 14158 invoked by uid 99); 6 Jun 2012 13:30:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 13:30:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.64] (HELO qmta07.westchester.pa.mail.comcast.net) (76.96.62.64) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 13:30:09 +0000 Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88]) by qmta07.westchester.pa.mail.comcast.net with comcast id Jzyb1j0071uE5Es571VofQ; Wed, 06 Jun 2012 13:29:48 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta16.westchester.pa.mail.comcast.net with comcast id K1Vl1j01P38FjT13c1Vnne; Wed, 06 Jun 2012 13:29:48 +0000 Message-ID: <4FCF5B4B.2020806@christopherschultz.net> Date: Wed, 06 Jun 2012 09:29:47 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x) References: <97FB38514D40D84A994DD395944796682575EF0DDE@SM-CALA-VXMB06B.swna.wdpr.disney.com> <97FB38514D40D84A994DD395944796682575EF0DDF@SM-CALA-VXMB06B.swna.wdpr.disney.com> <97FB38514D40D84A994DD395944796682575EF0DED@SM-CALA-VXMB06B.swna.wdpr.disney.com> <4FCEA86A.8070909@christopherschultz.net> <97FB38514D40D84A994DD395944796682575EF0DF0@SM-CALA-VXMB06B.swna.wdpr.disney.com> <97FB38514D40D84A994DD395944796682575EF0DF5@SM-CALA-VXMB06B.swna.wdpr.disney.com> In-Reply-To: <97FB38514D40D84A994DD395944796682575EF0DF5@SM-CALA-VXMB06B.swna.wdpr.disney.com> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Russel, On 6/6/12 8:45 AM, Morgan, Russel wrote: > So if I bundle the default servlet with my application and then > configure it to run as a different named servlet, and map static > resources to it within the webapp that should work? (I will > certainly try that) > > Also, all "tricks" aside, what is the proper way to address static > assets deployed within a webapplication, if pathing them to the > default servlet is inappropriate? What's wrong with letting the DefaultServlet continue to do its normal job by serving every resource that isn't otherwise mapped? > Forgive my ignorance but couldn't I just set this in my webapp xml > descriptor, and "rename" it, and then path to it? Why bother? If /resources/css/gopublish.css isn't mapped explicitly, then the DefaultServlet will look in your webapp's /resources/css/ directory for gopublish.css and serve the bytes no problem. > Perhaps the fact that the code is loaded by the webapp class > loader makes a difference , I am not sure. (just ruling out this > possibility) It does not matter. I think I've gotten lost... what are you actually trying to accomplish, here? Do you have a bunch of static content that is outside of the webapp's docBase that you want to serve from within its URL space? Any possibility that you could upgrade to Tomcat 7 which has "aliases" which can do this? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/PW0sACgkQ9CaO5/Lv0PBAkgCcD8hn/ZtuZal8QQNyFOCNepJc 5+gAnjzbuNER8okInm+w2qXvXkvfSvr3 =v2ck -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org