I have made a class in package project.attendance.model named CheckEmpId. I want to access methods of that class in my java script.
Is it possible, if yes than how?
Thanks
Printable View
I have made a class in package project.attendance.model named CheckEmpId. I want to access methods of that class in my java script.
Is it possible, if yes than how?
Thanks
Depends on how you wrote the class.
A normal, non-static class, you have to make an object, then call the methods.
If it's static, you can just call the methods.
You need to include it like any other class with the include directive.
So, you either do like
or, if static, justCode:CheckEmpId myObj = new CheckEmpId();
myObj.myMethodCall();
Oh, don't forget classpath and all that jazz.Code:CheckEmpId.theMethodName();
Greetings.