jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12755
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: response.setContentType("application/vnd.ms-excel");
 
Similar Threads
Save a webpage as PDF or Excel file
using jsp to generate excel file
Problem in Export to Excel using Jexcel api
Excel fails load to web
Viewing data from database into an xls format not working