In my web application,I want to use hypertext link to download file.
when I execute the following code, the file is opened by IE.
<a href="./test.pdf">download</a>
but I want to open the File Download Dialog, how to set in the glassfish? I attempt to use the following code,but it did not work.
dir\domains\domain1\config\default-web.xml
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>
I am sorry for my English.
[Message sent by forum member 'hudingchen']
http://forums.java.net/jive/thread.jspa?messageID=482239