You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Srinivas Reddy <sr...@ensoftek.com> on 2001/08/03 00:24:01 UTC
Problem in Viewing .doc file in TOMCAT
i have a simple application running on Tomcat. I opened a browser and there
is an clickable link which is of type doc say
<a href="javascript:ClickView('/purejsp/servlet/FileView/test.doc')"> test
</a>
when i click test it opens up in a browser as plain text but i want browser
to open up in a word file.
Samething works fine if i use APACHE+TOMCAT.
then i though i need to set MIMETYPE for this in tomcat and i added
following thing in to web.xml. (surprisingly there are entries for simple
html/htm/rtf ........ but there is no entry for doc)
<mime-mapping>
<extension>
doc
</extension>
<mime-type>
application/msword
</mime-type>
<mime-mapping>
but still it is not working.
Any suggestions will be appreciated.
regards
-srini