You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jaster, Bob" <Bo...@austinenergy.com> on 2004/02/19 17:33:25 UTC

MIME type

I would like to configure Tomcat to return a specific MIME type for all
files that end with a JNLP extension.  Could anyone tell me how to do this?

Bob Jaster 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


FAQ, but help!

Posted by Tony Nakamura <to...@uickarate.com>.
Hi,

I am using Tomcat 4.0.4 on Win2K environtment. I see in many places on the
net
that catching 500 error is much more compilcated than catching something
like
404.  I have the following in the %root%/my_app/conf/web.xml

-----------------------------------------------------------
 <error-page>
    <error-code>404</error-code>
    <location>/404.html</location>
 </error-page>

<error-page>
    <exception-type>java.io.FileNotFoundException</exception-type>
    <location>/500.jsp</location>
</error-page>

<error-page>
    <error-code>500</error-code>
    <location>/500.jsp</location>
</error-page>
------------------------------------------------------------

First, I'm wondering if this is a bug on 4.0.4, and second, if there is a
way around
it without having to upgrade to the newer version.


Thank you in advance!


Tony


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: MIME type

Posted by Juan de Bravo <ju...@mad.tecsidel.es>.
you can do it in %CATALINA_HOME%\conf\web.xml file. It's a file descriptor
for every web applications:

    <mime-mapping>
        <extension>JNLP</extension>
        <mime-type>XXX/YYYYY</mime-type>
    </mime-mapping>

-----Mensaje original-----
De: Jaster, Bob [mailto:Bob.Jaster@austinenergy.com]
Enviado el: jueves, 19 de febrero de 2004 17:33
Para: 'tomcat-user@jakarta.apache.org'
Asunto: MIME type


I would like to configure Tomcat to return a specific MIME type for all
files that end with a JNLP extension.  Could anyone tell me how to do this?

Bob Jaster

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org