aspose file tools*
The moose likes Servlets and the fly likes Using response.setHeader( 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 "Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method" Watch "Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method" New topic
Author

Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

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.setContentType("application/csv"); and 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.
Krishnan Iyer
Greenhorn

Joined: Sep 19, 2006
Posts: 5
Hey Bennet,

Can you try using this??

response.setHeader("Content-Disposition", "attachment; filename=filename.csv") ;


Best Regards,
Krishnan Iyer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using response.setHeader("Content-Disposition", "inline; filename=filename.csv") in post method
 
Similar Threads
How to make sure the open/save dialog opens a new application instance ?
jsp
problem in opening office 2007 document in JSP
how to download huge data in multiple excel using JSP
jsf: open pdf in browser