Use this panel to configure valid document types for your web application. In addition to the standard HTML and JSP document types, you may want to configure your web application to use other types of information. You add the document's MIME type to this panel to inform the web server which MIME types are associated with specific file name extensions in your web application. The web browser that runs your web application can then examine the MIME type returned by the server for a given request and determine how to handle the data contained in the response.
The subelement <mime-mapping>
is not a required element of the web.xml
deployment descriptor definition.
html
and txt
types.
pdf
.
This field corresponds to the <extension>
tag of the <mime-mapping>
subelement.application/pdf
for Adobe's Portable Document Format. This field corresponds to the <mime-type>
tag of the <mime-mapping>
subelement.
Note, the official registry of Internet MIME types is managed by the Internet
Assigned Numbers Authority (IANA):http://www.iana.org
You can also refer to the following reference for assistance:
http://www.javasoft.com/products/servlet/