wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
using jsp to generate excel file
Viewing data from database into an xls format not working
Problem in Export to Excel using Jexcel api
Save a webpage as PDF or Excel file
Excel fails load to web