tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: mime-type setting
Date Wed, 26 Jun 2002 03:32:08 GMT

I was suggesting that you use the Tomcat 4 web.xml as an example of how to 
set a mime-type in your own app's web.xml.

Here is a sample mime-mapping that you can put near the bottom of your own 
web.xml in [myapp]/WEB-INF:


I actually have to set that in my web.xml when my app runs under 
Tomcat-3.3.x because it returns .css files in text/plain which makes it so 
that Mozilla, in strict parsing mode, ignores the css.  Adding the 
<mime-mapping> to my own app's web.xml fixes it.


At 10:23 AM 6/26/2002 +0800, you wrote:
>That's why I wonder there is no conf/web.xml in tomcat3.3.  I also
>wonder where to set the mime-type in tomcat3.3.  I can find conf/web.xml
>in tomcat4.x.x.  Do you mean I just copy it to conf/web.xml in tomcat3.3
>and it should work?  I am using tomcat3.3.
>Jacob Kjome wrote:
> >
> >    Part 1.1Type: Plain Text (text/plain)
>Check out the Tomcat 4.x.x conf/web.xml.  You can use that format and
>ordering and apply it to your own app's web.xml.  I don't think that
>3.3.x uses a conf/web.xml.
>Also, take a look at the dtd by downloading it.  It specifies the tag
>order.  Use the URI in your dtd declaration of your web.xml file and
>that in any browser to download it.
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message