Subj : Re: RHino newbie: getter not working To : netscape.public.mozilla.jseng From : Brian J. Sayatovic Date : Wed Jan 19 2005 07:54 pm Igor Bukanov wrote: > Brian J. Sayatovic wrote: > >>> >> Actually, after all of my care to make sure I typed all of the >> details in, I neglected to mention that I'm already doing a >> defineClass for my class (although my getClassName() returns the >> fully quilified class name, org.trinition.mytest.MyCanvas). > > > You should not use dots in the String that getClassName returns. > Otherwise instead of new MyCanvas() your scripts would have to use > > new this['org.trinition.mytest.MyCanvas']; > > Regards, Igor > _______________________________________________ > mozilla-jseng mailing list > mozilla-jseng@mozilla.org > http://mail.mozilla.org/listinfo/mozilla-jseng > Well, that did it. I return just "MyCanvas" without the package from getClassName(), and it works. I guess I'm confused between when and where the java package names apply. I've seen in the docs/tutorial/examples where they rever to things in javascript like "java.util.Date", and other places where they start with the Packages object to get to other package hierarchies. My interest is in having Java objects which are accessible through javascript. Regards, Brian. .