Page 1 of 1

JRE 1.7 and deploy.js

Posted: Fri Aug 17, 2012 7:18 am
by support
Since JRE 1.7, a new JavaScript is recommended (and provided) by Oracle to deploy applet and manage JRE updates. New declaration looks like:

Code: Select all

<script src="deployJava.js"></script>
<script>
    var attributes = {codebase:'./',
                      code:'jfileupload.upload.client.MApplet.class',
                      archive:'lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar',
                      width:250, height:250,
					  name:'fileupload'};
    var parameters = {url:'http://localhost:8080/upload/process.jsp',
					  paramfile:'uploadfile',
					  param1:'todo',
					  value1:'upload',
					  mode:'http',
					  scriptable:true};
    var version = '1.6';
    deployJava.runApplet(attributes, parameters, version);
</script>
Here is a sample:
deployJS.zip
deploy.js sample
(6.42 KiB) Downloaded 1186 times

Re: JRE 1.7 and deploy.js

Posted: Mon Sep 24, 2012 2:07 pm
by chris
I think that this is the solution for my problem(I coudn't select any files and i was getting a message "error.click for details").
I m working with process.php so i change
var parameters = {url:'http://localhost:8080/upload/process.jsp', to
var parameters = {url:'http://209.61.249.188/process.php' . right?
when i try to upload a file, it works fine but then i can't find the file in the server.
in process.php i have as $upload_dir="artists".
Do i have to change anything else in deploy.js for saving the files in the correct path?

thx

Re: JRE 1.7 and deploy.js

Posted: Fri Oct 12, 2012 5:20 pm
by support
Remote folder path where files will be saved has to be configured in process.php