[英]What's the best option for a virtual keyboard component in a Java web application?
I would like to know what kind of technology would be better to create a virtual keyboard component, that needs to be installed in different web applications. 我想知道哪种技术会更好地创建一个虚拟键盘组件,该组件需要安装在不同的Web应用程序中。
All these application are Java, but some use Struts, other uses JSF. 所有这些应用程序都是Java,但是一些使用Struts,其他使用JSF。
A Java applet + servlet would be the best choice concerning security? Java applet + servlet是关于安全性的最佳选择吗?
My idea is to write an applet + servlet. 我的想法是编写一个applet + servlet。 All applications would need to add the servlet/mapping in their "web.xml" file. 所有应用程序都需要在其“ web.xml”文件中添加servlet /映射。 The applet would communicate with the servlet passing information. 小程序将与servlet传递信息进行通信。
The fact of signing an applet with a certificate make it secure? 用证书签名小程序的事实使其安全吗?
Using java applets is generally a bad idea for the last 12 years. 在过去的12年中,使用Java小程序通常是一个坏主意。 Javascript and HTML 5 provide you enough functionality to create any UI you want. Javascript和HTML 5为您提供了足够的功能来创建所需的UI。 Java applet requires JVM installed and configured on client side. Java applet需要在客户端安装和配置JVM。
Signing applet does not add anything to its security. 对applet进行签名不会对其安全性产生任何影响。 It means that the applet is can perform operations that forbidden to unsigned applets. 这意味着该小程序可以执行禁止未签名小程序执行的操作。 It means that additionally to installation of java use must give your applet permission to run. 这意味着除了安装Java外,还必须授予您的applet运行权限。
As I understand you want virtual keyboard. 据我了解,您需要虚拟键盘。 So, type "javascript virtual keyboard" in google and get a lot of ready-to-use lightweight components that do not require any download and work in most existing browsers. 因此,在Google中键入“ javascript虚拟键盘”,即可获得许多即用型轻量级组件,这些组件无需任何下载即可在大多数现有浏览器中运行。 For example take a look on this implementation: http://sourceforge.net/projects/jsvk/ 例如,看一下此实现: http : //sourceforge.net/projects/jsvk/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.