scripting - Is it possible to call on a Java-method from JavaScript in Java6 1.6 script-engine? -


I want to call my Java-method from a Javascript file via ScriptEngineManager provided in Java 1.6. Is this possible?

Yes:

There are several ways to do this Java code in global context Push the context of objects, which will look like, like the DOM object looks like a browser JavaScript and JavaScript can install Java objects and reference them.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -