开发者

Browser downloads jnlp on Java Web Start. How to prevent it?

开发者 https://www.devze.com 2023-01-10 01:37 出处:网络
When I click on a link to \"web start\" my java application, browser downloads jnlp file which I should execute afterwards. Is there any way to force browser to execute jnlp right after the download c

When I click on a link to "web start" my java application, browser downloads jnlp file which I should execute afterwards. Is there any way to force browser to execute jnlp right after the download completes, or event better, to make the whole process transparent, so user just confirms that he wants to launch the applicat开发者_如何学运维ion? Thanks.


All you can do is provide the correct MIME type which in a standard setup makes the browser automatically open the file with Java WebStart.

Apart from that you cannot control whether the file is opened or not. Most browsers even have an option which prevents automatically opening downloaded files.

0

精彩评论

暂无评论...
验证码 换一张
取 消