This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: MIME Types
 
Similar Threads
Issue with MIME settings in WebSphere
web.xml causes 404 error
Opening a MS Word Document from JSP using Relative URL
Apache2 / Tomcat 6 / GWT 2.0 - Could use some help
Tomcat showing error