File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes MIME Types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "MIME Types" Watch "MIME Types" New topic

MIME Types

Sonalee Mohapatra

Joined: Sep 15, 2003
Posts: 10
I have some links on a html page (application hosted on weblogic) which point to word documents/excel sheets. When i click on the links, they should open up the file download dialog of windows (save to disk/open from current location). Instead, it shows up junk in a new window.
I tried setting the mime types in the web.xml file as follows
for doc files :
still doesnt work though. Please advise on what is wrong.
Karthik Prabu
Ranch Hand

Joined: Dec 27, 2002
Posts: 48
Hi Sonalee
Try setting the "Content-Disposition" header in the Response.
I agree. Here's the link:
subject: MIME Types
It's not a secret anymore!