File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "MIME Types" Watch "MIME Types" New topic
Author

MIME Types

Sonalee Mohapatra
Greenhorn

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 :
<mime-mapping>
<extension>
doc
</extension>
<mime-type>
application/msword
</mime-type>
</mime-mapping>
still doesnt work though. Please advise on what is wrong.
Regards
Karthik Prabu
Ranch Hand

Joined: Dec 27, 2002
Posts: 48
Hi Sonalee
Try setting the "Content-Disposition" header in the Response.
karthik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MIME Types
 
Similar Threads
Issue with MIME settings in WebSphere
Opening a MS Word Document from JSP using Relative URL
Tomcat showing error
Apache2 / Tomcat 6 / GWT 2.0 - Could use some help
web.xml causes 404 error