This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!