A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method
Joined: Jun 19, 2008
May 01, 2009 06:49:47
i have huge data to be sent to the server and based on data i need to download content from server(server in turn fetches data from Database).
i tried using post method, to post huge data into server.
i am getting the content. but i am not getting the pop up.(which say "Save or Open").
when i used the
response.setHeader("Content-Disposition", "inline; filename=TestingFile.csv");
in post method
the window appears for save or open is not appearing.
how can i archive this.
Please tell me.
Thanks In Advance,
Bennet Xavier. X.
Joined: Sep 19, 2006
May 02, 2009 08:26:55
Can you try using this??
response.setHeader("Content-Disposition", "attachment; filename=filename.csv") ;
It is sorta covered in the
JavaRanch Style Guide
subject: Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method
jsf: open pdf in browser
How to make sure the open/save dialog opens a new application instance ?
problem in opening office 2007 document in JSP
how to download huge data in multiple excel using JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014