• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic