This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to show word file in IE with JSP coding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "How to show word file in IE with JSP coding" Watch "How to show word file in IE with JSP coding" New topic
Author

How to show word file in IE with JSP coding

ASD derf
Greenhorn

Joined: Dec 02, 2006
Posts: 1
i want to show a word file in I.E. with JSP code .. i tried out with include but it dosent works .. i am using tomcat 5.5 and I.E. 6.0
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

add page directive attribute as contentType= "application/vnd.ms-word".


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63211
    
  69

"ASD derf",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63211
    
  69

Originally posted by ASD derf:
i want to show a word file in I.E. with JSP code


JSP is a poor technology choice for such a feature. Perhaps this article will help explain why.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to show word file in IE with JSP coding
 
It's not a secret anymore!