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 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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: mime type in web.xml
It's not a secret anymore!