File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    5
Exactly what happens with various content types depends on how the user's browser is set up to handle them.
Bill

Java Resources at www.wbrogden.com
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
Excel fails load to web
using jsp to generate excel file
Problem in Export to Excel using Jexcel api
Viewing data from database into an xls format not working
Save a webpage as PDF or Excel file