mime type mapping for NRL

Posted on 2004-11-29
Last Modified: 2012-08-14

I have NRL files which I uploaded into a directory. NRL file is just a small text file which will be involked by iManage program. The path to an NRL file from my page is as such:


When I click on this link, it display the content in the browser.

I have added the following in web.xml file but does not help.

      <mime-mapping id="MimeMapping_42">
      <mime-mapping id="MimeMapping_41">

How do I in JSP code such that it will open this file with the right program?

Thank you.
Question by:Tuan_Jean
    1 Comment
    LVL 29

    Accepted Solution

    You need to set the contentType also known as the MIME type:

    response.setContentType( application/msword ); // MIME type for word doc

    response.setContentType( application/nrl ); // MIME type for word nrl

    This will only work if the browser has the mimetype set correctly ,i.e. is this case MS Word and NRL installe don their computer. You can easily tell if the mime-type is set as else it will ask you "which program do you want to open this with?"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now