tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Bradley" <>
Subject Re: Tomcat 4.1 MIME Type from web.xml
Date Tue, 16 Sep 2003 15:57:47 GMT

> Is there a corresponding method within the Tomcat 4.1 framework?  I would
> like to determine a file's MIME type as specified within the web.xml
> document.

I'm an idiot, please don't bombard me....

Servlet Context
      java.lang.String getMimeType(java.lang.String file)
                Returns the MIME type of the specified file, or null if the
MIME type is not known.


View raw message