Subj : Re: Send variables To : Anibal Constante Brito From : Igor Bukanov Date : Sun Dec 07 2003 12:12 am Anibal Constante Brito wrote: > How can I send variables to the script from java, use this variables > inside script, and then get the value from java when the script run finish? > > like a Jython Interpreter.Set("name", Object) and > Interpreter.Get("name", class or something), and use inside script like > other vairiables. To get/set variable in a scope object you can use ScriptableObject.getProperty/setProperty, see http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/ScriptableObject.html .. See also http://www.mozilla.org/rhino/scopes.html for general explanation on scope usage in Rhino. Regards, Igor .