Yeah that's what I'm doing. I have a JS file which initializes a bunch of variables like that, but I was wondering if I could just do that in Java.
Thanks anyways =) On Dec 29, 11:18 pm, Tom Robinson <[email protected]> wrote: > On Dec 28, 4:13 pm, Jani <[email protected]> wrote: > I think you can just do "var bar = Packages.foo.bar;", if I correctly > understand what you're trying to do. > > > > > Hi > > > I've been trying to find out a good way to provide a specific set of > > Java classes to JavaScript. > > > Basically, I would like to do something like show Packages.foo.bar.* > > as bar.* in JS side of things. So far I've been just using a quick JS > > snippet to manually map the long namespace into the shorter one. > > > I've gone through the docs and examples a few times and can't really > > find a way to do this any easier. > > > Thanks in advance for any ideas. _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
