MIME Mappings Property Editor

Tip 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:

  1. Click the Deployment tab on the property sheet for the web.xml file.
  2. Click the value field for the MIME Mappings property to display the ellipsis button.
  3. Click the ellipsis button.
  4. The MIME Mappings property editor appears.

To add a MIME mapping:

  1. In the MIME Mappings property editor, click the Add button.
  2. The Add MIME Mapping dialog box appears.
  3. 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.
  4. 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.
  5. Click OK.

To edit a MIME mapping:

  1. In the MIME Mappings property editor, select the desired MIME mapping, and click the Edit button.
  2. The Edit MIME Mapping dialog box appears.
  3. Edit the extension in the Extension field.
  4. Edit the MIME type in the MIME Type field, or make a selection from the combo box.
  5. Click OK.

To remove a MIME mapping:

  1. In the MIME Mappings property editor, select the desired MIME mapping, and click the Remove button.
  2. The MIME mapping is deleted.
  3. Click OK to confirm the action or Cancel to stop the action.
See also
Editing Web Module Deployment Properties

Legal Notices