cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Weinger <gwein...@mii.ucla.edu>
Subject flowscript array question
Date Thu, 22 Jul 2004 16:36:14 GMT
Hi,

I am simply trying to create a javascript array in flowscript, Cocoon 
2.1.5.  The standard javascript syntax doesn't seem to work:

    var array = ["one","two","three"];

  Or:

     var array = new Array(3);
     array[0] = "blah";

For me, this throws a:

-----------------------------------------------------------
  org.mozilla.javascript.EvaluatorException: 
file:/home/knoppix/workspace/DataServer_v2_1/build/webapp/admin/flow/model.js", 

  line 154: Java constructor for "java.lang.reflect.Array" with arguments
"number" not found
-----------------------------------------------------------

Is this expected behavior?  Any clues what I'm doing wrong?

Note, I can create a **JAVA** array using 
Packages.java.lang.reflect.Array.newInstance(class,number).  But this 
seems wrong.

Thanks,
Greg


Mime
View raw message