• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing Java from JS  RSS feed

 
Chandra shekar M
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was trying to invoke a Java code from JS code, but this is not possible directly like an one API calling directly other , it should be a service call like rest,xhr,applet.

Or is there a way to make the call directly ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. JavaScript runs in a browser. It can't call into another sandbox (applet) or server code.
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to access (preferably public) stuff of a Java applet from Java script in the same HTML page?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!