| Author |
File download
|
kausalya mohan
Greenhorn
Joined: Aug 02, 2007
Posts: 1
|
|
Hi all, I tried the following code to download a file. <% String fileName = "abc.xml"; response.setHeader("Content-Disposition", "attachment;filename=" + fileName); response.setContentType("text/xml"); %> But when I execute this I get the file dialog,but when I click on the open button I get "Action cancelled".But I want to download the file.Can anybody help? Thanks.
|
 |
 |
|
|
subject: File download
|
|
|