jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Downloading Excel File 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 » JSP
Bookmark "Downloading Excel File" Watch "Downloading Excel File" New topic
Author

Downloading Excel File

chetan
Greenhorn

Joined: Aug 13, 2002
Posts: 15
Hi all,

I am trying to download a excel file using jsp.
But I am able to get the content on the browser but i am not getting the save option pop-up wher user can save the file in a specified directory..

Below is snippet of my code

response.setContentType("application/excel");
response.setHeader("Content-Disposition","attachement;");

PLease let me know if anything needs to be added to get the save pop-up option..

Thanks In Adavance

Chetan


Thanks<br />chets
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You've missspelt attachment


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

"chetan",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Downloading Excel File
 
Similar Threads
Opening files in jsp
java- poi
how to save as excel file after created using javascript or jsp
Web report to Excel attachment in email
Any idea on Export an Excel Sheet in GWT