Hi, On 2/14/06, neil.benn <[EMAIL PROTECTED]> wrote: > This returns 'NeilNeilNeilNeilNeil' - all good so far. However I want to > be able to pass Java variables to Jython (I'll include JRuby and Groovy again > at some point). For this, I reckon I need to use the apply function. > However, I'm confused - the docs state that I need :
I don't have the javadoc at hand (it would be great if the javadoc could be found on the jakarta BSF website, BTW), but looking at my code, I can tell that you need the declareBean()-method from the BSFManager class. Something like this: BSFManager manager = new BSFManager(); manager.declareBean("objList", new ArrayList(), List.class); This code makes a variable called "objList" available to your script. Cheers Benjamin