Subj : Re: Help: Defining "this" as a Java object (not inheriting from ScriptableObject) To : "Fabrice DELHOSTE [GEMPLUS]" From : Igor Bukanov Date : Thu Dec 11 2003 05:36 pm Fabrice DELHOSTE wrote: > Hi *, > > I'm a Rhino newbie (and not a Javascript fellow ;-) and I would like to have > more information on the "this" keyword and how to set it in order to invoke > properties/methods on one of my regular Java class instance. > > In fact, consider I have a Java class not inheriting from ScriptableObject > and I want -absolutely- to define "this" in the global scope as an instance > of this class. Just need to have a similar behaviour defining the "this" > variable as any other variable implemented by a Java class. How exactly do you want to script your class? Can you give a small JS fragment that you would like to use to access your class? Regards, Igor .