next-generation-plugin

How to create file from java applet?

怎甘沉沦 提交于 2019-12-13 00:22:43
问题 I'm trying to create an excel file and save to local file system using java applet. After sign the application, i can successfully create the file by directly invoking the applet. However, when i try to call the method from javascript, it failed without any error message. I'm wondering if there is any policy control to prevent java method to be called from javascript? <html> <script language="JavaScript"> function createExcel() { document.excel.createExcel(); document.excel.setMessage("hello

value passing in java applet

只谈情不闲聊 提交于 2019-12-11 05:28:58
问题 i am passing value in java applet but value is coming there as null my javascript for applet deployment : <script src="javascript/deployJava.js"></script> <script> var attributes = { id:'dynamictreeapplet', code:'jstojava.com.vaannila.utility.dynamicTreeApplet.class',width:1000,height:1000} ; var parameters = {jnlp_href:'./appletjars/a.jnlp'} ; deployJava.runApplet(attributes, parameters, '1.6'); </script> My jnlp <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http:/

JNLP as a Applet in HTML page

▼魔方 西西 提交于 2019-12-10 21:03:05
问题 I'm trying to run my JNLP within an HTML page, but the java plugin does not run the JNLP, runs only the Applet. Here is my code: <applet width="800" height="500" codebase="http://127.0.0.1:8888/applets/" code="br.com.app.server.utils.CompatibilityApplet" archive="CompatibilityApplet.jar"> <param name="jnlp_ref" value="http://127.0.0.1:8888/applets/testehellojws.jnlp"> </applet> Thanks. [EDIT] An example: http://java.sun.com/javase/ja/6/ea/6u10/plugin2/jnlp/CompatibilityApplet.java <?xml

How to grant all permissions to java applet through JNLP without popups

萝らか妹 提交于 2019-12-10 10:37:44
问题 We are launching an applet using jnlp The applet needs to load a native library The jar and the jnlp are signed with a self generated certificate. The jnlp grants all permission with <security> <all-permissions/> </security> The policy file grants all permissions grant { permission java.security.AllPermission; }; We are getting a popup dialog “ java security warning” That says: this application is going to perform an insecure operation. Do you want to continue ? Continue or cancel (see

How to save some config information in an Java Applet?

半世苍凉 提交于 2019-12-10 10:12:31
问题 How can I save a configuration locally and permanently in a Java Applet? Ideally this should be work with a not signed Applet. 回答1: In addition to AlexR's methods.. .. .. Run the applet in a new generation Java plug-in (1.6.0_10+) and use the JNLP API's PersistenceService to serialize the data. Here is a demo. of the PersistenceService. 回答2: Applet may receive parameters using <param> tag. This way you can send it parameters you know at design time or at runtime. If you mean that user that

Applet frameworks for access to local file system

筅森魡賤 提交于 2019-12-08 04:39:18
问题 I need a Java applet framework or something like that for syncing files between server and local machine through browser. Of course I can make that applet myself, but maybe someone has already seen or done that applet. Are there any Java applet frameworks for accessing the local file system through a browser? 回答1: See the Applet info. page for references to 'Next Generation'. Since the Next Generation plug-in, even sand-boxed embedded applets can access the local file-system (with the

Applet frameworks for access to local file system

半城伤御伤魂 提交于 2019-12-07 15:26:26
I need a Java applet framework or something like that for syncing files between server and local machine through browser. Of course I can make that applet myself, but maybe someone has already seen or done that applet. Are there any Java applet frameworks for accessing the local file system through a browser? Andrew Thompson See the Applet info. page for references to 'Next Generation'. Since the Next Generation plug-in, even sand-boxed embedded applets can access the local file-system (with the permission of the user, when prompted). Next Gen. applets: Can be deployed using Java Web Start

How to grant all permissions to java applet through JNLP without popups

限于喜欢 提交于 2019-12-06 12:44:19
We are launching an applet using jnlp The applet needs to load a native library The jar and the jnlp are signed with a self generated certificate. The jnlp grants all permission with <security> <all-permissions/> </security> The policy file grants all permissions grant { permission java.security.AllPermission; }; We are getting a popup dialog “ java security warning” That says: this application is going to perform an insecure operation. Do you want to continue ? Continue or cancel (see attached screen shot) There is no “allow always” button Which means that the dialog pops up “every time” the

How to save some config information in an Java Applet?

二次信任 提交于 2019-12-06 01:09:26
How can I save a configuration locally and permanently in a Java Applet? Ideally this should be work with a not signed Applet. In addition to AlexR's methods.. .. .. Run the applet in a new generation Java plug-in (1.6.0_10+) and use the JNLP API's PersistenceService to serialize the data. Here is a demo. of the PersistenceService . Applet may receive parameters using <param> tag. This way you can send it parameters you know at design time or at runtime. If you mean that user that uses the applet can change some parameters and you wish to store them you have 2 possibilities. Store them in

Java Applet via JNLP: System.Properties not being “set”

孤街浪徒 提交于 2019-12-04 13:17:47
It is years since I have worked in Java (that's my excuse). I am trying to launch a Java Swing UI as an Applet (previously done via Web Start). I have modified the jnlp file to reflect the changes that I know are necessary for an applet (e.g. using applet-desc instead of application-desc). Inside the <resources> tag in the jnlp file we set system properties like this: <property name="java.security.auth.login.config" value="$$context/app/auth.conf"/> In the init method of the main class we try to read some of these system properties and always get "null" as the value. Does anyone have any ideas