Thanks for this. Hmm, so this is something that I was not aware of. (The O'Relilly book -- Tomcat *Definitive* Reference -- doesn't even mention this!!!!) So, I've disabled the / mapping by commenting it out. And my CSS pages are working as normal. But trying to access my app with the root URL just causes a directory listing.

So how do I stop that? I'm deploying my app under a particular context, and clearly I want to be able to just put in http://host/context/ and expect it to pick the home page. It doesn't, but just gives me a directory listing. So adding a / mapping solves this but stops CSS, and without it I get CSS but no root mapping!!

Bugger!

Anyone have any ideas?

Joe.


From: Tim Funk <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: web.xml: my default.css file does not work correctly
Date: Sat, 31 Jul 2004 14:43:16 -0400

You have overriddent the default servlet. That mean its your servlet's job to serve static resources. (There a threads in the archives about this)


-Tim

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to