开发者

accessing a method in .jar file from javascript

开发者 https://www.devze.com 2023-03-14 12:24 出处:网络
I need to access a 开发者_开发问答method in an api say xyz-api.jar located in a server. inside my javascript function, how should i proceed?

I need to access a 开发者_开发问答method in an api say xyz-api.jar located in a server. inside my javascript function, how should i proceed?

We cannot use servlets here as there is no access to the server. Thanks in advance!


Use Applets and RMI to interact with server and call the applet methods in javascript !

Here's a small example to go with

http://www.codestore.net/store.nsf/unid/DOMM-4U8FM6


I don't think you can access the java object method from javascript code without a servlet/jsp or other server-side codes.

0

精彩评论

暂无评论...
验证码 换一张
取 消