wood burning stoves 2.0*
The moose likes Servlets and the fly likes Content Type Mapping Class?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Content Type Mapping Class??" Watch "Content Type Mapping Class??" New topic
Author

Content Type Mapping Class??

Tom McComb
Ranch Hand

Joined: Jun 07, 2001
Posts: 30
Hello helpful people...
Is there a standard class (Sun or public domain) that maps most standard file extensions to the content-type setting used in HttpServletResponse.setContentType( String ).
Either that, or is there a link to file extensions and content-types?
Thanks very much in advance for your help.


Tom McComb
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
You can find a lot of these defined in the default web.xml in a Tomcat installation.
TOMCAT_HOME/conf/web.xml
 
 
subject: Content Type Mapping Class??
 
Similar Threads
VirtualHost/Webgroup not defined error
PLGN0021E: Servlet Request Processor Exception
FileUpload and File type
Can Servlet out data as MS-WORD format?
please help