GeeCON Prague 2014*
The moose likes Servlets and the fly likes response.setContentType( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "response.setContentType("application/vnd.ms-excel");" Watch "response.setContentType("application/vnd.ms-excel");" New topic
Author

response.setContentType("application/vnd.ms-excel");

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I was wondering what happened when we set content type like response.setContentType("application/vnd.ms-excel");
Does it invoke an instance of MS Excel?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
Exactly what happens with various content types depends on how the user's browser is set up to handle them.
Bill
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by William Brogden:
Exactly what happens with various content types depends on how the user's browser is set up to handle them.
Bill

It also depends on how the web server and/or servlet container is set to handle them as well.
Ken
 
GeeCON Prague 2014
 
subject: response.setContentType("application/vnd.ms-excel");