In action class method i am setting the response as attachment.
response.setHeader("Content-disposition", "attachment; filename=" + fileName);
so when this is called by the
jsp page a download dialog is opened to download the attachmetn (which is decided by the browser depending upon the header).
Now the scenario is that i want to call the same code from
java applet and i want that a download dialog should be open like the way it is opened when call is made from jsp page to download the attachment whereas currently download dialog is not opened when the call is made from the java file.
How this can be done so that download dialog is opened to save the attachment in the desired location when the call is made from java applet.