Thank you so much for your responses!

I want to call Java method (not on applet, public method that exists
in a package) from js embeeded inside servlet. Is it possible? If so,
how?

If it's not possible, I want to call Java method (not on applet,
public method that exists in a package) from js embedded in a jsp. Is
it possible?  If so, how?

thank you,
Daniel

On 12월18일, 오전4시41분, Johan Compagner <[email protected]> wrote:
> how do you run your script?
>
> On Thu, Dec 17, 2009 at 19:19, Daniel Kim <[email protected]> wrote:
> > hi,
>
> > I am running into some problems and I was wondering if anyone can shed some
> > light for me.
>
> > What I am trying to achieve:
> > Call Java class's method from Javascript
>
> > What I did so far:
> > 1) I downloaded rhino1_7R2
> > 2) added js.jar (this was located right under directory rhino1_7R2) to
> > my project library
> > 3) created fooclass with ScriptableObject
>
> > Problems I am getting
> > I am getting an error
> > var pn = new Packages.foo.foo.fooclass();
>
> > Error message from FireBug:
> > uncaught exception: Error calling method on NPObject! [plugin
> > exception: java.lang.ClassNotFoundException: foo.foo.fooclass].
>
> > Pardon me if this quesiton is too basic. I just found out about this Rhino
> > few days ago and I've been trying to get this foo example to work..
>
> > Any help would be appreciated.
>
> > thank you,
> > Daniel
> > _______________________________________________
> > dev-tech-js-engine-rhino mailing list
> > [email protected]
> >https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to