• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Content Type Mapping Class??

 
Tom McComb
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find a lot of these defined in the default web.xml in a Tomcat installation.
TOMCAT_HOME/conf/web.xml
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic