Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anthony Castillon
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already figured it out. I had to add "application/msword" MIME type to my server configuration in WSAD 5.0.
Thanks.
Anthony
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic