MIME Mappings Property Editor
 |
Note that this feature might not be included in
your version of the IDE. If it is not available, you can edit the deployment
descriptor (web.xml) file using the editor of your choice.
For more information, see Java Servlet 2.3 Specification available
at http://java.sun.com/products/servlet . |
You can use the MIME Mappings property editor to add, edit, or remove MIME
(Multipurpose Internet Mail Extensions) mappings from the web module. MIME is
an Internet standard for sending and receiving non-ASCII email attachments.
Web browsers also use MIME types to assign applications that interpret and display
files that are not formatted in HTML. These mappings correspond to the <mime-mapping>
entry in the deployment descriptor.
To display the MIME Mappings property editor:
- Click the Deployment tab on the property sheet for the web.xml file.
- Click the value field for the MIME Mappings property to display the
ellipsis button.
- Click the ellipsis button.
The MIME Mappings property editor appears.
To add a MIME mapping:
- In the MIME Mappings property editor, click the Add button.
The Add MIME Mapping dialog box appears.
- Type an extension in the Extension field. An extension is the three or
four letter file extension, such as svg for a Scalable Vector Graphics
file. The extension might include any file extension at the end of an attachment,
for instance,
.txt
, .pdf
, .doc
, and
so forth. You could also add your own extension.
- Type the MIME type in the MIME Type field, or make a selection from the combo box.
An example of a MIME type
that might not appear in the combo box but would still be valid is
image/svg-xml for
Scalable Vector Graphics format.
- Click OK.
To edit a MIME mapping:
- In the MIME Mappings property editor, select the desired MIME mapping,
and click the Edit button.
The Edit MIME Mapping dialog box appears.
- Edit the extension in the Extension field.
- Edit the MIME type in the MIME Type field, or make a selection from the
combo box.
- Click OK.
To remove a MIME mapping:
- In the MIME Mappings property editor, select the desired MIME mapping,
and click the Remove button.
The MIME mapping is deleted.
- Click OK to confirm the action or Cancel to stop the action.
Legal Notices