Hello everyone,

i have a problem with my web (jsp) page..
i need to show the "save as" dialog and save a file(a pdf file to be specific)..
i was able to show the dialog already but the problem is it will save the web page...

Code:
document.execCommand('SaveAs',null,fname)
is there any way I could specify the file using the above command?
or is there a better way of doing this?

please help me..any suggestions will be greatly appreciated...


PS i am really sory if im in the wrong forum..but im hoping somebody could help me out here...

many thanks in advance.