• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!