wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Invoking java class from Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Invoking java class from Javascript" Watch "Invoking java class from Javascript" New topic
Author

Invoking java class from Javascript

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Hi

Any way to call a java class from HTML or Java script.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You have to post the page back to the server or make an Ajax call.

Eric
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invoking java class from Javascript
 
Similar Threads
get HttpServletRequest from java class
JSP and Oracle
Diff between Java Bean and Java class
from class file to java file
Does JPG Java Class Exist