tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alec Swan <aukcio...@yahoo.com>
Subject Re: Serving CSS files from a certain URL
Date Wed, 05 Jul 2006 17:16:04 GMT
Beautiful! I'll give it a try!
Thanks.

Hassan Schroeder <hassan.schroeder@gmail.com> wrote: On 7/5/06, Alec Swan  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  -- 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
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message