enter code here
How do I use Rhino return a string from java to javascript, all I get is org.mozilla.javascript.JavaNativeObject when I use
var jsString = new java.lang.String("test");
inside my js file.
Is this the right way to do it?
var jsString = String(new java.lang.String("test"));
PS. The goal is to have a java method to return the String object instead of creating it on the fly like above.