aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes when we need to fill MIME-MAPPING in web.xml? 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "when we need to fill MIME-MAPPING in web.xml?" Watch "when we need to fill MIME-MAPPING in web.xml?" New topic
Author

when we need to fill MIME-MAPPING in web.xml?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
I am able to use response.setContentType("text/HTML")...and for MSWord..Excel... without entering <MIME-MAPPING> in web.xml.
So when we get a need to fill <MIME-MAPPING> in web.xml?
Subha Gummadi
Greenhorn

Joined: Jun 30, 2004
Posts: 2
When you say response.setContentType(...), it will be applicable to only that JSP/Servlet where you have that response object.... But if you want to define mime-mapping at the Web container level, you can define in the web.xml file... (applicable to all the Servlets/JSP ).

Hope this is clear.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: when we need to fill MIME-MAPPING in web.xml?
 
Similar Threads
Issue with MIME settings in WebSphere
web.xml causes 404 error
Configuring Tomcat 5 on Win2K and Linux
Tomcat showing error
video/mpeg mapping