This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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.
Have you checked out Aspose?
subject: MIME Types
It's not a secret anymore!