Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking java class from Javascript

 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Any way to call a java class from HTML or Java script.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to post the page back to the server or make an Ajax call.

Eric
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The mechanics of doing so can be hidden using DWR, but it's still really important to know what's going on "under the hood" (behind the scenes).
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just for completeness' sake, JavaScript can make use of Java classes on the client (without there being an applet). See https://jdk6.dev.java.net/plugin2/liveconnect/ for the details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic