header problem: *.doc displayed as plain-text
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Henry_Leung
Posted On:   Monday, May 26, 2003 07:00 PM

I am developing my homepage on Websphere Application Sever 4.0. In my homepage, there is a link which directly points to a .doc file. But when I click the link, the .doc file is displayed as plain-text. That means, the header is wrongly set as "text/html". From my past experience, this problem usually happens when a JSP tries to flush the output too early before it delivers its real content. But this time JSP is not related. The link directly points to the .doc file. i.e. the link is somehting like http://www.mydomain.com/word.doc Hence I suspect it's server-setting problem. Does anybody know why the header would be wrongly set as "text/html"???    More>>

I am developing my homepage on Websphere Application Sever 4.0. In my homepage, there is a link which directly points to a .doc file. But when I click the link, the .doc file is displayed as plain-text. That means, the header is wrongly set as "text/html". From my past experience, this problem usually happens when a JSP tries to flush the output too early before it delivers its real content. But this time JSP is not related. The link directly points to the .doc file. i.e. the link is somehting like



http://www.mydomain.com/word.doc




Hence I suspect it's server-setting problem. Does anybody know why the header would be wrongly set as "text/html"???    <<Less

Re: header problem: *.doc displayed as plain-text

Posted By:   Christopher_Schultz  
Posted On:   Tuesday, May 27, 2003 07:07 AM

Check your web server's mine type mapping. It's possible that there's no mapping for *.doc, in which case it might default to text/plain. You should set the mime type to application/octet-stream or application/msword if you're confident about the use of M$ Word.



-chris
About | Sitemap | Contact