This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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
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