File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Displaying a .doc file in MSWord, not in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Displaying a .doc file in MSWord, not in a browser" Watch "Displaying a .doc file in MSWord, not in a browser" New topic
Author

Displaying a .doc file in MSWord, not in a browser

Anthony Castillon
Greenhorn

Joined: Nov 30, 2001
Posts: 18
I have a servlet that needs to redirect to an MS Word document (.doc). It displays as a web page. I want to display it in the user's machine by having it open up the user's Word application.
I also set the HttpResponse contentType to "application/msword" but it still does not work.
I'd really appreciate your ideas.
Thanks.
Anthony
Anthony Castillon
Greenhorn

Joined: Nov 30, 2001
Posts: 18
I already figured it out. I had to add "application/msword" MIME type to my server configuration in WSAD 5.0.
Thanks.
Anthony
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying a .doc file in MSWord, not in a browser