Re: question on mime type

Kai Ojansuu <[email protected]> Fri, 29 Oct 2004 11:00:12 +0300
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
DAL> Hi all,
DAL>
DAL> How can my servlet determine the appropriate MIME type to set in the
DAL> response, based on the file extension of the file being sent?

getServletContext().getMimeType( filename );

-Kai

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html