Passing data from java file to ajax
Passing data from java file to ajax I have a java class printing the progress of a process as 1%, 2%, 3%. Now I want to read this progress using AJAX requests and continuously update the progress in the webpage. I cannot convert the java file into a servlet as it is being used as an scriptlet by Jasper. Scriptlet code is : public void afterDetailEval() throws JRScriptletException{ count = (Integer) this.getVariableValue("count"); out.println(count); Thread.sleep(200); } How can I read the data printed by java from an AJAX request? Any help will be greatly appreciated! What do you think about your choice to not show the code you have that's doing the stuff you just described, while also asking for help about just these things? – kumesana Jul 1 at 20:07 what is your java class running ...