File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes mime type in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "mime type in web.xml" Watch "mime type in web.xml" New topic

mime type in web.xml

Ashraf Fouad
Ranch Hand

Joined: Oct 07, 2001
Posts: 80
I want to override the behaviour of WebSphere virtual host in mime-type mappings:
I want to know how to define this in web.xml, specially the problem in having several extensions to the same mime type like the following example, plz supply example:
<mime type="video/mpeg">

Ashraf Fouad
Ashraf Fouad
Ranch Hand

Joined: Oct 07, 2001
Posts: 80
The original problem:
is that I can't c the doc, ppt, jar files in WebSphere 3.5.5 they appear as garpage instead I want any file to be displayed if the cliet machine has it plugin as if Office was installed & to display save as dialog for other files as jar.
The strange thing is that .pdf files appear correctly & .zip files make the save as dialog appear but others display rubbish.
If anyone faced this problem & have solution for any type plz reply
I agree. Here's the link:
subject: mime type in web.xml