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?
posted 13 years ago
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 ).