How to open and show dialog "Save" in jsp

Hi all,I write a program which open and show all file type. If browser can open -> open and show this file, if can not open, the program must show dialog "Save". How I can check browser can open a file ?Thanks
[233 byte] By [musica] at [2007-11-27 6:41:54]
# 1
> How I can check browser can open a file ?You cannot. You can decide to let the client choose the option to save or open the file itself. Change the "content-disposition" in the header to "attachment". Then the client will always get a "Save as" dialogue.
BalusCa at 2007-7-12 18:11:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...