Hi Matthew,

everytime I dropped the tools.jar into any WEB-INF\lib folder I
restarted jetty. I'm just trying to do pure java scripting. The
example has been extracted from the examples. Actually my folder C:
\jetty-openbd\webapps\openbd\WEB-INF\lib has tools.jar among the rest
of OpenDB jars and I have restarted. No luck :(

Here is the code:

<cfscript>
s = ["A","B","C","D","E","F"];
</cfscript>

<cfscript language="java">
  // Retrieve the CFML object
  cfArray d = cf.getArray("s");

  for ( int x=0; x < d.size(); x++ )
  {
    cf.print( d.get(x) );
  }

  cf.print( cf.get("CGI.SCRIPT_NAME") );

  // Creating an array in Java, and then setting it for the CFML
  List fromJava = Arrays.asList(new String[] { "aa", "bb", "cc",
"dd" });
  cf.set( "abc", fromJava );

  // Calling out to a cfml function
  String a = (String)cf.call( "listgetat", "a,b,c,d", 3 );
  cf.print( a );

</cfscript>


-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

     Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to