You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Gilbert, Antoine" <AG...@korem.com> on 2006/02/05 20:02:28 UTC
file servlet
I'm using tomcat 5.5
Any way to make tomcat able to serve zip and video files ? without
having to write code
RE: file servlet
Posted by Tim Lucia <ti...@yahoo.com>.
They are just files, like .html or .txt, or any other static content. If
you need to set the mime type, supply a mime-mapping like this:
<mime-mapping>
<extension>zip</extension>
<mime-type>application/zip</mime-type>
</mime-mapping>
See $CATALINA_HOME/conf/web.xml for the complete set of pre-installed mime
types.
Tim
-----Original Message-----
From: Gilbert, Antoine [mailto:AGilbert@korem.com]
Sent: Sunday, February 05, 2006 2:02 PM
To: Tomcat Users List
Subject: file servlet
I'm using tomcat 5.5
Any way to make tomcat able to serve zip and video files ? without having to
write code
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org