Using javascript APIs in Java
I am writing a standalone application in Java that needs to be able to call cus开发者_StackOverflowtom Javascript APIs? Is there a way to call custom Javascript APIs in Java?
In a standalone app: should be possible by using Rhino.
In a browser?
If your applet exposes a scriptable interface, yes you can.
JSon could be your one stop. Let me know if you are looking for this?
Aside from the name, javascript and java have no relationship whatsoever.
精彩评论