Subj : Re: Using Rhino WITHOUT LiveConnect To : Will Gayther From : Igor Bukanov Date : Mon May 12 2003 11:19 am Will Gayther wrote: > 1. Is it possible (for security purposes) to compile and run javascript > with Rhino without LiveConnect being enabled, so that no java classes are > accessible from the script? 1.a. If I use ClassShutter to deny access to > all > java classes, will normal javascript still run ok? (ie manipulating dates) Yes > 2. How can I pass a specific instance of a class into javascript? After: Scriptable wrapper = Context.toObject(javaObjectToMakeVisibleInJS, scope); ScriptableObject.putProperty(scope, "x", wrapper); you can refer in scripts to javaObjectToMakeVisibleInJS as x even if ClassShutter would not allow to access javaObjectToMakeVisibleInJS class. Regards, Igor .