You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by unplug <un...@vulture.no-ip.com> on 2002/06/25 09:32:11 UTC
mime-type setting
Hi all,
I want to set mime-type in tomcat 3.3. However, I can't find the
web.xml under $TOMCAT_HOME/conf (there is a default web.xml under
$TOMCAT_HOME/conf for tomcat 3.2). Also I can't find any document
about setting mime-type in tomcat 3.3. Where to set mime-type in
order to make tomcat works? Anyway example of web.xml format?
Rgds,
unplug
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: mime-type setting
Posted by Jacob Kjome <ho...@visi.com>.
No,
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:
<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>
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.
Jake
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.
>
>unplug
>
>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
>that
>ordering and apply it to your own app's web.xml. I don't think that
>Tomcat
>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
>load
>that in any browser to download it.
>
>Jake
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: mime-type setting
Posted by unplug <un...@vulture.no-ip.com>.
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.
unplug
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
that
ordering and apply it to your own app's web.xml. I don't think that
Tomcat
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
load
that in any browser to download it.
Jake
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: mime-type setting
Posted by Jacob Kjome <ho...@visi.com>.
Check out the Tomcat 4.x.x conf/web.xml. You can use that format and that
ordering and apply it to your own app's web.xml. I don't think that Tomcat
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 load
that in any browser to download it.
Jake
At 03:32 PM 6/25/2002 +0800, you wrote:
>Hi all,
>
> I want to set mime-type in tomcat 3.3. However, I can't find the
>web.xml under $TOMCAT_HOME/conf (there is a default web.xml under
>$TOMCAT_HOME/conf for tomcat 3.2). Also I can't find any document
>about setting mime-type in tomcat 3.3. Where to set mime-type in
>order to make tomcat works? Anyway example of web.xml format?
>
>Rgds,
>unplug
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>