JRE 1.7 and deploy.js

Upload core product.
Post Reply
User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

JRE 1.7 and deploy.js

Post 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 753 times

chris
Posts: 1
Joined: Mon Sep 24, 2012 12:17 pm

Re: JRE 1.7 and deploy.js

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: JRE 1.7 and deploy.js

Post by support »

Remote folder path where files will be saved has to be configured in process.php

Post Reply