Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mime-mapping?

 
kriti sharma
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have read in the servlet spec that mime-mapping element is used to map an mime-type to an extension. but can someone please tell the need to use this element. give me one real scenario when it would be required to add this element to the deployment descriptor.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Kriti,

Not sure if you totaly agree with me but this could be one of the scenarios that i faced before.

Mime-type is sent in the header by the webserver to tell the browser how to handle the reponse. On the webservers we had an entry xls and the application type was ofcourse microsoft excel. Now if you have multiple web applications on deployed on the same server and you just want you application to open the xls file with open office then changing the entry on the webserver will cause issues as it will affect other application too. Defining them in the web.xml file is local to your application only.

cheers
skini
[ July 22, 2004: Message edited by: Shailesh Kini a.k.a SKini ]
 
Vicky Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shailesh,

I think u are talking right...

Cheers
 
kriti sharma
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shailesh, i cud not understand your point, cud you please try to explain once again?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic