File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Content (MIME)type in websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Content (MIME)type in websphere" Watch "Content (MIME)type in websphere" New topic

Content (MIME)type in websphere

Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Posts: 45
Hi Friends,

I am working on a web application whicch has Websphere as a web server.
I Have written 1 servlet, which opens a word document using some code.The word document is on server side, and while client asking for the access to it through this servlet, it needs to be downloaded on client's machine i.e. it should be opened in client's browser in proper word format.

I have two servers; one is Live and other is Test. I do development and testing on Test Server.But my problem is that when I try to acces the word document,from Live server, it is opened in proper word format in the browser,but not the same case in Test Server.It gives the Document contents along with the byte code in the browser.

After going through the file structures for websphere, I found there something called as in ../Websphere/java/jre/lib directory.In this direcory, I found some MIME type mentioned.So I added for word document as :

\description=Adobe PDF Format;\

I added :
\description=Microsoft Word Format;
these lines to it.

I am still having the problems with it.

Can anyone suggest where else you can have such settings for MIME type?

Thanks & Regards,
I agree. Here's the link:
subject: Content (MIME)type in websphere
It's not a secret anymore!