AnsweredAssumed Answered

javascript array to java

Question asked by buurd on Feb 26, 2010
Latest reply on Mar 2, 2010 by buurd
Hi!

I've got a java class that performs a couple of services that I would like to reach from a webscript (javascript). I have almost reched the goal using simple datatypes, like strings and numbers. But now I need to send an array with noderefs to my javacode and here I'm stuck.

My javascript: (sba is the variable that holds the java object).

var nodeRefArray = new Array();
for(var i = 0; i < argsM.nodeRef.length; i++){
        var documentNode = search.findNode(argsM.nodeRef[i]);
        nodeRefArray.push(documentNode);
        sba.createZipArchive(nodeRefArray)
}

Please inform me about how the signature of the (java) method createZipArchive should be written?

Thanks in advance
Roland

Outcomes