I am using a Servlet to read a MS Word document from a remote server and display it to the user within the IE browser. My servlet looks like this:
The document is located in: http://server/Document.doc
1. res.setContentType( "application/msword" );
2. Open URL connection to the above document.
3. Read the contents and write.
When I access the servlet, I am getting an annoying pop-up asking me to Open or Save the contents. WHen I click Open, the correct file is opened (so, it is accessing the document correctly). How can I automatically open the contents in a browser window instead of prompting the user with that Download pop-up?