tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hassan Schroeder" <hassan.schroe...@gmail.com>
Subject Re: Serving CSS files from a certain URL
Date Wed, 05 Jul 2006 17:04:19 GMT
On 7/5/06, Alec Swan <aukcioner@yahoo.com> wrote:

> I like your idea of using filters to rewrite CSS paths. Could you give
> me a hint on how to do that best?

Actually, if you're in a hurry, you could just use the URL Rewrite Filter
  -- see <http://tuckey.org/urlrewrite/> -- an incredibly handy tool for lots
of other things as well  :-)

Writing your own would be pretty simple, though -- grab any request
that ends in '.css' , substring off the unwanted parts and forward to
the "correct" URL. Or if you only have a small number of style sheets,
you could put the original and "fixed" URLs in a HashMap and save
the string processing.  TMTOWTDI. :-)

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


Mime
View raw message