Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

How to call a java mathod from javascript?

Dear Experts,

Please tell me how to call a java method from javascript function.(both static and non static methods of java)
0
BhanuSVS
Asked:
BhanuSVS
1 Solution
 
rrzCommented:
You could use
http://directwebremoting.org/dwr/index.html 
I haven't used it in a while.
0
 
rrzCommented:
Please give us more details. Maybe there is a better solution.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Sathish David Kumar NCommented:
thats not possible because java script  is working in client side(browser)  and java is  working in server side .
0
 
Sathish David Kumar NCommented:
some time it will work because both will in same place (local host) .. if you deploy in server then it wont work ..

better use ajax call or form submit .. or do the validation in java script itself
0
 
BhanuSVSAuthor Commented:
thanks..
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now