Download file -JSP
I am having a problem in getting the open/save dialog box..
I am doing an application which allows the user to download the file which is generated (and stored in the server)..
I am getting the open/save dialog box.. but I am getting the source of JSP file inside the file which is downloaded (instead of its original content)..
The code which I used :
response.setContentType( "application/download" );
response.setHeader( "Content-Disposition", "attachment; filename=c:\\file.txt");
(I already searched many forums .. still my problem was not solved .. thats the reason i am posting it here again )