I'm using Mozilla Rhino 1.7r2 (not the JDK version), and I want to call a JS function from Java.
My JS function is like this:
function abc(x,y)
{
return x+y
}
How do I do this?
Edit: (The JS function is in a separate file)
I'm using Mozilla Rhino 1.7r2 (not the JDK version), and I want to call a JS function from Java.
My JS function is like this:
function abc(x,y)
{
return x+y
}
How do I do this?
Edit: (The JS function is in a separate file)