• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we call a javaclass from a javascript function?

 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How to call a javaclass(with main method in it) from a javascript function ??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A "main" method only has relevance if you want to start a Java application. Is that what you want to do, or do you just want to call some Java method and have it return some result to the JavaScript code?
 
bala nannaka
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Ajax or DWR you can call a java class (Server side component) from a javascript function.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re: DWR... That's *sort* of true, but you're not directly calling the java class. It *looks* like you are--but you're not. The difference may only be semantic, but it's a very important distinction to make.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Javascript forum.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankyou somuch for responding...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic