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)
BhanuSVSAsked:
Who is Participating?
 
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Sathish David Kumar NArchitectCommented:
thats not possible because java script  is working in client side(browser)  and java is  working in server side .
0
 
Sathish David Kumar NArchitectCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.