• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Content (MIME)type in websphere

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 content-type.properties in ../Websphere/java/jre/lib directory.In this direcory, I found some MIME type mentioned.So I added for word document as :

---------------------------------------------
e.g.
application/pdf:
\description=Adobe PDF Format;\
file_extensions=.pdf
----------------------------------------

I added :
-------------------------------------
application/msword:
\description=Microsoft Word Format;
file_extensions=.doc
-----------------------------------------
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,
Ketan
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic