I have a jsp page tied to a servlet that runs groovy scripts. I am able to get to the groovy script from the servlet. But after the script runs how do I return the response from
Have the runTest groovy method return the value you want to pass to the servlet, and capture it as the return value of groovyObject.invokeMethod :
runTest
groovyObject.invokeMethod
Object ret = groovyObject.invokeMethod("runTest", args1); System.out.println("In Java " + ret);