Link to home
Start Free TrialLog in
Avatar of BhanuSVS
BhanuSVSFlag for India

asked on

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)
Avatar of rrz
rrz
Flag of United States of America image

You could use
http://directwebremoting.org/dwr/index.html 
I haven't used it in a while.
Please give us more details. Maybe there is a better solution.
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thats not possible because java script  is working in client side(browser)  and java is  working in server side .
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
Avatar of BhanuSVS

ASKER

thanks..