mime mapping tag reference - novalexei/mod_servlet GitHub Wiki

#####<mime-mapping>

This tag defines a mapping between a file extension and a MIME type.

The mod_servlet will provide defaults for the main file types. This tag can be used to extend or modify that list.

There are two required subelements as follows:

  • <extension> - file extension (no leading dot), examples: xls, pdf
  • <mime-type> - a mime type, eg: application/vnd.ms-excel or text/html

To web.xml reference page