Calling a void method of an action in a javascript function

0

Is it possible to call a javascript function a method that returns nothing (void) from a java action type class (HttpServlet)?

I'm maintaining a project with struts, and the action already exists. I created a method void (public void contadorCronograma (){ metrics.trackEvent("conta cronograma");} and called in the javascript that is in jsp function acompanharCronograma(){ submit(contadorCronograma); chamarFuncionalidade(...);} . But it does not find the method and does not execute. Does anyone have an idea of what happens? or do you have an example to help? Thank you guys.

    
asked by anonymous 15.04.2018 / 04:18

0 answers