Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<mime-mapping>

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the influence on the container when I set up this mapping?
Does it affect response object (for example: sets content type)?
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody help?
 
Ankit Garg
Sheriff
Posts: 9579
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only reason that I can think of is if you have a directory that contains files of some type (lets say pdf) which are directly server to the browser, then the container will automatically set the content type of the response for the files (example application/pdf for pdf files)...
 
Niteen Patil
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it mean that for a particular type of the file (ex.PDF) the type of the response is changed by the container if it is set in <mime-mapping> tag for that extension.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic