How to call a method dynamically in Java
// Get the Class object of the class that contains the method Class<?> loginAction = LoginAction.class; // Get the Method object of the method you want to call Method actionMethod…
// Get the Class object of the class that contains the method Class<?> loginAction = LoginAction.class; // Get the Method object of the method you want to call Method actionMethod…