签名的 Java Applet 提示打印机访问
我有一个小型 Java 小程序,可以从浏览器进行自定义打印。
我已经使用 godaddy 证书签署了小程序,但我仍然收到以下安全警告:
==
安全警告
小程序已请求访问打印机
您要允许此操作吗?
==
有一个复选框显示“始终允许此小程序运行”,但选择该复选框仍然会导致在显示打印对话框之前显示警告对话框。
无论如何,是否可以在不修改客户端计算机上的 .policy 文件的情况下授予对打印机的访问权限,或者在 .jar 文件中包含 .policy 文件?
谢谢!
I have a small java applet that does custom printing from the browser.
I have signed the applet with a go daddy certificate, but I am still receiving the following security warning:
==
Security warning
The applet has requested access to the printer
Do you want to allow this action?
==
There is a checkbox that says, "Always allow this applet to run", but selecting that still always causes the warning dialog to show before the print dialog is displayed.
Is there anyway to grant access to the printer without modifying the .policy file on the client machines or to include a .policy file in the .jar file?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为还有其他办法。我遇到了同样的问题 - 签名小程序打印,但有那个烦人的对话框。
我的问题是小程序是由 javascript 执行的。根据此处的注释,javascipt执行的小程序的行为始终像未签名的一样一。
I don't think there is other way. I had the same problem - signed applet printing, but with that annoying dialog.
My problem was that the applet was executed by javascript. According a note here, applet executed by javascipt behaves always like unsigned one.